Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:344a

Do you know where the sun goes? They replied: Allah and His Apostle know best. He (the Holy Prophet) observed: Verily it (the sun) glides till it reaches its resting place under the Throne. Then it falls prostrate and remains there until it is asked: Rise up and go to the place whence you came, and it goes back and continues emerging out from its rising place and then glides till it reaches its place of rest under the Throne and falls prostrate and remains in that state until it is asked: Rise up and return to the place whence you came, and it returns and emerges out from it rising place and the it glides (in such a normal way) that the people do not discern anything ( unusual in it) till it reaches its resting place under the Throne. Then it would be said to it: Rise up and emerge out from the place of your setting, and it will rise from the place of its setting. The Messenger of Allah ﷺ said. Do you know when it would happen? It would happen at the time when faith will not benefit one who has not previously believed or has derived no good from the faith. (Using translation from Muslim 159a)   

السيوطي:٣٤٤a

"أتدرون أين تذهبُ هذه الشَّمس؟ إن هذه تجرى حتى تنتهىَ إِلى مُستَقَرَّها تحت العرش، فتخِرَّ ساجدةً، فلا تزالُ كذلكَ حتى يُقال لها: ارتفعى، ارْجِعِى من حيث (جئت)، فترجِعَ، فتُصبِح طالِعةً من مَطْلَعها، ثم تجرى حتى تنتهىَ إِلى مُستَقرَّها تحت العرشِ، فتخِرَّ ساجدةً، فلا تزال كذلكَ حتَّى يقال: ارتفعِى، ارجعى من حيث جئت، فترجع فتصبحَ طالعةً من مطلعَها، ثم تَجرى، لا يَسْتنكِرُ الناسُ منها شيئًا حتى تنتهىَ إِلى مُستَقَرَّها ذاك تحتَ العَرْشِ، فيقَالَ لها: ارتَفعِى، أصْبِحى طالعةً من مغربِك؛ فتصبح طالعةً من مغرِبهِا: أتدرون متى ذاكم؟ حين لا ينفعُ نفسًا إيمانها لم تكن آمنتْ من قبلُ، أو كسبَت في إيمانها خيرًا .  

[م] مسلم عن أبى ذر

See similar narrations below:

Collected by Muslim
muslim:159aYaḥyá b. Ayyūb And ʾIsḥāq b. Ibrāhīm > Ibn ʿUlayyah > Ibn Ayyūb > Ibn ʿUlayyah > Yūnus > Ibrāhīm b. Yazīd al-Taymī Samiʿah Fīmā Aʿlam from his father > Abū Dhar

Do you know where the sun goes? They replied: Allah and His Apostle know best. He (the Holy Prophet) observed: Verily it (the sun) glides till it reaches its resting place under the Throne. Then it falls prostrate and remains there until it is asked: Rise up and go to the place whence you came, and it goes back and continues emerging out from its rising place and then glides till it reaches its place of rest under the Throne and falls prostrate and remains in that state until it is asked: Rise up and return to the place whence you came, and it returns and emerges out from it rising place and the it glides (in such a normal way) that the people do not discern anything ( unusual in it) till it reaches its resting place under the Throne. Then it would be said to it: Rise up and emerge out from the place of your setting, and it will rise from the place of its setting. The Messenger of Allah ﷺ said. Do you know when it would happen? It would happen at the time when faith will not benefit one who has not previously believed or has derived no good from the faith.  

مسلم:١٥٩aحَدَّثَنَا يَحْيَى بْنُ أَيُّوبَ وَإِسْحَاقُ بْنُ إِبْرَاهِيمَ جَمِيعًا عَنِ ابْنِ عُلَيَّةَ قَالَ ابْنُ أَيُّوبَ حَدَّثَنَا ابْنُ عُلَيَّةَ حَدَّثَنَا يُونُسُ عَنْ إِبْرَاهِيمَ بْنِ يَزِيدَ التَّيْمِيِّ سَمِعَهُ فِيمَا أَعْلَمُ عَنْ أَبِيهِ عَنْ أَبِي ذَرٍّ

أَنَّ النَّبِيَّ ﷺ قَالَ يَوْمًا أَتَدْرُونَ أَيْنَ تَذْهَبُ هَذِهِ الشَّمْسُ قَالُوا اللَّهُ وَرَسُولُهُ أَعْلَمُ قَالَ إِنَّ هَذِهِ تَجْرِي حَتَّى تَنْتَهِيَ إِلَى مُسْتَقَرِّهَا تَحْتَ الْعَرْشِ فَتَخِرُّ سَاجِدَةً وَلاَ تَزَالُ كَذَلِكَ حَتَّى يُقَالَ لَهَا ارْتَفِعِي ارْجِعِي مِنْ حَيْثُ جِئْتِ فَتَرْجِعُ فَتُصْبِحُ طَالِعَةً مِنْ مَطْلِعِهَا ثُمَّ تَجْرِي حَتَّى تَنْتَهِيَ إِلَى مُسْتَقَرِّهَا تَحْتَ الْعَرْشِ فَتَخِرُّ سَاجِدَةً وَلاَ تَزَالُ كَذَلِكَ حَتَّى يُقَالَ لَهَا ارْتَفِعِي ارْجِعِي مِنْ حَيْثُ جِئْتِ فَتَرْجِعُ فَتُصْبِحُ طَالِعَةً مِنْ مَطْلِعِهَا ثُمَّ تَجْرِي لاَ يَسْتَنْكِرُ النَّاسُ مِنْهَا شَيْئًا حَتَّى تَنْتَهِيَ إِلَى مُسْتَقَرِّهَا ذَاكَ تَحْتَ الْعَرْشِ فَيُقَالُ لَهَا ارْتَفِعِي أَصْبِحِي طَالِعَةً مِنْ مَغْرِبِكِ فَتُصْبِحُ طَالِعَةً مِنْ مَغْرِبِهَا فَقَالَ رَسُولُ اللَّهِ ﷺ أَتَدْرُونَ مَتَى ذَاكُمْ ذَاكَ حِينَ لاَ يَنْفَعُ نَفْسًا إِيمَانُهَا لَمْ تَكُنْ آمَنَتْ مِنْ قَبْلُ أَوْ كَسَبَتْ فِي إِيمَانِهَا خَيْرًا