Jareer bin Abdullah reported,

Jareer reported, "We were sitting with the Messenger of Allah ﷺ when he looked at the moon on the night of a full moon and said, 'You will surely see your Lord just as you see this moon. You will have no difficulty in seeing Him. So if you are able to never be overcome from offering a prayer before the rising of the sun and before its setting, then do so,' meaning the Asr and Fajr prayers."Then Jareer recited, "And glorify the praise of your Lord before the rising of the sun and before its setting" [Ta-Ha 20:130].

Azami 12739

Sahih

عن جرير بن عبد الله قال

كنا جلوسا عند رسول الله ﷺ، إذ نظر إلى القمر ليلة البدر، فقال: أما إنكم ستترون ربكم، كما ترون هذا القمر، لا تضامون في رؤيته، فإن استطعتم أن لا تغلبوا على صلاة قبل طلوع الشمس وقبل غروبها. يعني العصر والفجر، ثم قرأ جرير: {وسبح بحمد ربك قبل طلوع الشمس وقبل غروبها}.

الأعظمي 12739صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Taha
Section
His saying, "So be patient over what they say and exalt with praise of your Lord before the rising of the sun and before its setting, and during periods of the night exalt Him and at the ends of the day, that you may be satisfied." His saying, "And exalt with praise of your Lord before the rising of the sun and before its setting" means the Fajr prayer and the Asr prayer, as mentioned in the authentic hadith
Numbering
Jami al-Kamil 12739 (2nd edition)
Azami 12739