Guru Valmiki ji has written this very famous “Aditya Hidayam Stotra”. It occurs in the 107th chapter of the Yuddh Kanda in Ramayana.