The Messenger of Allah ﷺ forbade praying after the afternoon prayer until the sun sets, and praying after the dawn prayer until the sun rises.
قال قرأت على عبد الرحمن: مالك وحدثنا إسحاق قال أخبرني مالك عن محمد بن يحيى بن حبان عن الأعرج
أن رسول الله ﷺ نهى عن الصلاة بعد العصر حتى تغرب الشمس وعن الصلاة بعد الصبح حتى تطلع الشمس
Its isnad is sahih, and it has already appeared in 355. The hadith was also related by Abu Dawud 2/24 no. 1274, Tirmidhi 1/345 no. 184, and Nasai 1/280 no. 573.