Jareer bin Abdullah reported,

We were sitting with the Messenger of Allah ﷺ when he looked up at the moon on the night it was full, and he said, "You will surely see your Lord just as you see this moon, without any crowding or difficulty in seeing Him. So if you are able, never let yourselves be kept from a prayer before the rising of the sun and before its setting," meaning Asr and Fajr.Then Jareer recited, "And glorify your Lord with praise before the rising of the sun and before its setting" [Taha 20:130].

Azami 2371

Sahih

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

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

الأعظمي 2371صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Congregational prayer
Section
Virtue of the Fajr and Asr prayers in congregation
Numbering
Jami al-Kamil 2371 (2nd edition)
Azami 2371