Hadith 3199, Sahih Bukhari
Narrated by Abu Dhar
The Prophet (ﷺ) asked me at Sunset, "Do you know where the Sun goes (at the time of Sunset)?" I
replied, "Allah and His Apostle know better." He said, "It goes (i.e. travels)(to resting place) till it
prostrates Itself underneath the Throne and takes the permission to rise again, and it is permitted
and then (a time will come when) it will be about to prostrate itself but its prostration will not be
accepted, and it will ask permission to go on its course but it will not be permitted, but it will be
ordered to return whence it has come and so it will rise in the west. And that is the interpretation of
the Statement of Allah: "And the Sun Runs its fixed course For a term (decreed). That is The Decree
of (Allah) The Exalted in Might, The All- Knowing." (36.38)