(1) The Book of Faith
كتاب الإيمان
(72) Chapter: Clarifying the time when faith will no longer be accepted
(72) باب بَيَانِ الزَّمَنِ الَّذِي لاَ يُقْبَلُ فِيهِ الإِيمَانُ ‏‏
Sahih Muslim 159 b 

It is narrated on the authority of Abu Dharr that the Messenger of Allah (ﷺ) one day said:

Do you know where the sun goes? The remaining part of the hadith is the same.
وَحَدَّثَنِي عَبْدُ الْحَمِيدِ بْنُ بَيَانٍ الْوَاسِطِيُّ، أَخْبَرَنَا خَالِدٌ، - يَعْنِي ابْنَ عَبْدِ اللَّهِ - عَنْ يُونُسَ، عَنْ إِبْرَاهِيمَ التَّيْمِيِّ، عَنْ أَبِيهِ، عَنْ أَبِي ذَرٍّ، أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ يَوْمًا ‏ "‏ أَتَدْرُونَ أَيْنَ تَذْهَبُ هَذِهِ الشَّمْسُ ‏"‏ بِمِثْلِ مَعْنَى حَدِيثِ ابْنِ عُلَيَّةَ ‏.‏
Reference : Sahih Muslim 159b
In-book reference : Book 1, Hadith 305
USC-MSA web (English) reference : Book 1, Hadith 298
  (deprecated numbering scheme)