You can learn this song by going to Kakariko Village and heading to the Graveyard. Head all the way to the back of the Graveyard and you should see a Triforce symbol on the ground. Play Zelda's Lullaby and enter the grave. Go all the way to the back room and read the tombstone and you will learn the Sun's Song.