Abdullah bin Abbas reported,

Some men whose testimony I find acceptable, among them Umar bin Khattab, and the most acceptable of them to me is Umar, testified before me that the Prophet of Allah ﷺ said, "There is no prayer after the dawn prayer until the sun rises, and no prayer after the afternoon prayer until the sun sets."

Abu Dawud 1276

Sahih

حدثنا مسلم بن إبراهيم حدثنا أبان حدثنا قتادة عن أبي العالية

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

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

أبو داود 1276صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Voluntary prayers
Chapter
Whoever permitted them if the sun is still high
Numbering
Darussalam 1276
Abu Dawud 1276