Abdullah bin Abbas reported,

I heard from more than one of the companions of the Messenger of Allah ﷺ, among them Umar bin Khattab, who was the dearest of them to me, that the Messenger of Allah ﷺ forbade praying after Fajr until the sun rises, and after Asr until the sun sets.

Muslim 1921

Sahih

و حدثنا داود بن رشيد وإسمعيل بن سالم جميعا عن هشيم قال داود حدثنا هشيم أخبرنا منصور عن قتادة قال أخبرنا أبو العالية

عن ابن عباس قال

سمعت غير واحد من أصحاب رسول الله ﷺ منهم عمر بن الخطاب وكان أحبهم إلي أن رسول الله ﷺ نهى عن الصلاة بعد الفجر حتى تطلع الشمس وبعد العصر حتى تغرب الشمس

مسلم 1921صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues of the Quran and what relates to it
Chapter
Times in which prayer is prohibited
Numbering
Darussalam 1921
Muslim 1921