The Messenger of Allah ﷺ forbade two prayers, the prayer after dawn until the sun rises, and the prayer after the afternoon prayer until the sun sets.
حدثنا أبو بكر بن أبي شيبة حدثنا عبد الله بن نمير وأبو أسامة عن عبيد الله بن عمر عن خبيب بن عبد الرحمن عن حفص بن عاصم
أن رسول الله ﷺ نهى عن صلاتين عن الصلاة بعد الفجر حتى تطلع الشمس وبعد العصر حتى تغرب الشمس
Sourced. Bukhari narrated it in the Book of Prayer Times, chapter on prayer after Fajr until the sun rises, hadith no. 584, and Muslim narrated it in the Book of Business Transactions, chapter on the invalidity of the sale of mulamasah and munabadhah, hadith no. 1511, from the hadith of Abu Usama, with this same chain.