I heard the Messenger of Allah ﷺ say, "There is no prayer after the dawn prayer until the sun has risen, and no prayer after the afternoon prayer until the sun has set."
سمعت رسول الله ﷺ يقول: لا صلاة بعد الصبح حتى ترتفع الشمس، ولا صلاة بعد العصر حتى تغيب الشمس.
Bukhari related it in "Prayer Times" (586), and Muslim in "Prayer of the Traveler" (827), both from the hadith of Ibn Shihab, who said, Ata bin Yazid Jundai Laythi told me that he heard Abu Saeed Khudri say, then he related the hadith.