Abdullah bin Abbas reported,

I heard from several companions of the Prophet ﷺ, among them Umar, who was the dearest of them to me, that the Messenger of Allah ﷺ forbade prayer after the dawn prayer until the sun rises, and prayer after the afternoon prayer until the sun sets.

Nasai 563

Sahih

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

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

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

النسائي 563صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Times of prayer
Chapter
Prohibition of prayer after Fajr
Numbering
Darussalam 563
Nasai 563