Jarir ibn Abdullah reported: We were with the Prophet, peace and blessings be upon him, and he looked at the full moon one night. The Prophet said, “Verily, you will see your Lord just as you see this moon. There will be no crowd to block your vision. Thus, If you are able not to miss prayer before the rising of the sun and its setting, then do so.” Then, the Prophet recited the verse, “Glorify your Lord with praises before the rising of the sun and its setting.” (50:39)
Source: Ṣaḥīḥ al-Bukhārī 573, Ṣaḥīḥ Muslim 633
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
عَنْ جَرِيرِ بْنِ عَبْدِ اللَّهِ قَالَ كُنَّا عِنْدَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَنَظَرَ إِلَى الْقَمَرِ لَيْلَةً يَعْنِي الْبَدْرَ فَقَالَ إِنَّكُمْ سَتَرَوْنَ رَبَّكُمْ كَمَا تَرَوْنَ هَذَا الْقَمَرَ لَا تُضَامُّونَ فِي رُؤْيَتِهِ فَإِنْ اسْتَطَعْتُمْ أَنْ لَا تُغْلَبُوا عَلَى صَلَاةٍ قَبْلَ طُلُوعِ الشَّمْسِ وَقَبْلَ غُرُوبِهَا فَافْعَلُوا ثُمَّ قَرَأَ وَسَبِّحْ بِحَمْدِ رَبِّكَ قَبْلَ طُلُوعِ الشَّمْسِ وَقَبْلَ الْغُرُوبِ
573 صحيح البخاري كتاب مواقيت الصلاة باب فضل صلاة العصر
633 صحيح مسلم كتاب المساجد ومواضع الصلاة باب فضل صلاتي الصبح والعصر والمحافظة عليهما