ASSALAM ALAIKUM
Am gonna bring this out basing on the hadith narrated by Abu Dahr which says:
The prophet(s.a.w) asked me at sunset , "Do you know where the sun goes (at the time of sun set )? " i replied , Allah and his messenger know best ". He said " it goes (ie travel) 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 about to prostrate itself but its prostration will not be accepted and it will ask for 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 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]