Sahih al-Bukhari 7434
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنَّكُمْ سَتَرَوْنَ رَبَّكُمْ كَمَا تَرَوْنَ هَذَا الْقَمَرَ لاَ تُضَامُّونَ فِي رُؤْيَتِهِ، فَإِنِ اسْتَطَعْتُمْ أَنْ لاَ تُغْلَبُوا عَلَى صَلاَةٍ قَبْلَ طُلُوعِ الشَّمْسِ وَصَلاَةٍ قَبْلَ غُرُوبِ الشَّمْسِ، فَافْعَلُوا "
Narrated Jarir:
We were sitting with the Prophet (ﷺ) and he looked at the moon on the night of the full-moon and said, "You people will see your Lord as you see this full moon, and you will have no trouble in seeing Him, so if you can avoid missing (through sleep or business, etc.) a prayer before sunrise (Fajr) and a prayer before sunset (`Asr) you must do so." (See Hadith No. 529, Vol. 1)
Full reference and source
Sahih al-Bukhari 7434 In-book : Book 97, Hadith 61 USC-MSA web (English) : Vol. 9, Book 93, Hadith 529 (deprecated)
View source on Sunnah.com (opens in a new tab)