Abu Dharr reported,

The Prophet ﷺ said one day, "Do you know where this sun goes?"They replied, "Allah and His Messenger know best."He said, "It travels until it reaches its resting place beneath the Throne, where it falls down in prostration. It remains like that until it is told, 'Rise and return from where you came,' so it returns and rises in the morning from its place of rising. Then it travels again until it reaches its resting place beneath the Throne, where it falls down in prostration. It remains like that until it is told, 'Rise and return from where you came,' so it returns and rises in the morning from its place of rising. Then it travels, with people noticing nothing unusual about it, until it reaches that resting place beneath the Throne, and it is told, 'Rise, and rise tomorrow from your place of setting,' so it rises in the morning from its place of setting."Then the Messenger of Allah ﷺ said, "Do you know when that will be? It will be when no soul will benefit from its faith if it had not believed before or earned good through its faith."

Azami 8211

Sahih

عن أبي ذر

أن النبي ﷺ قال يوما: أتدرون أين تذهب هذه الشمس؟ قالوا: الله ورسوله أعلم قال: إن هذه تجري حتى تنتهي إلى مستقرها تحت العرش فتخر ساجدة، فلا تزال كذلك حتى يقال لها: ارتفعي ارجعي من حيث جئت، فترجع فتصبح طالعة من مطلعها، ثم تجري حتى تنتهي إلى مستقرها تحت العرش فتخر ساجدة، ولا تزال كذلك حتى يقال لها ارتفعي ارجعي من حيث جئت، فترجع فتصبح طالعة من مطلعها ثم تجري لا يستنكر الناس منها شيئا حتى تنتهي إلى مستقرها ذاك تحت العرش فيقال لها: ارتفعي أصبحي طالعة من مغربك فتصبح طالعة من مغربها فقال رسول الله ﷺ: أتدرون متى ذاكم ذاك؟ حين لا ينفع نفسا إيمانها لم تكن آمنت من قبل أو كسبت في إيمانها خيرا.

الأعظمي 8211صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Beginning of creation
Section
Sun and the moon are two signs among the signs of Allah, Allah created them for great wisdoms
Numbering
Jami al-Kamil 8211 (2nd edition)
Azami 8211