Abu Dharr reported,

I was with the Prophet ﷺ in the mosque at sunset when he said, "Abu Dharr, do you know where the sun sets?"I replied, "Allah and His Messenger know best."He said, "It travels until it prostrates beneath the Throne. That is the meaning of His statement, "And the sun runs to its resting place. That is the decree of the Almighty, the All-Knowing" [Ya-Sin 36:38]."

Bukhari 4802

Sahih

حدثنا أبو نعيم حدثنا الأعمش عن إبراهيم التيمي عن أبيه

عن أبي ذر رضي الله عنه قال

كنت مع النبي ﷺ في المسجد عند غروب الشمس فقال يا أبا ذر أتدري أين تغرب الشمس قلت الله ورسوله أعلم قال فإنها تذهب حتى تسجد تحت العرش فذلك قوله تعالى {والشمس تجري لمستقر لها ذلك تقدير العزيز العليم}

البخاري 4802صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
His saying, "And the sun runs to a fixed course, that is the decree of the Almighty, the Aleem"
Numbering
Darussalam 4802
Bukhari 4802