Amr bin Abasa reported,

I said, "Prophet of Allah, tell me about what Allah has taught you and which I do not know. Tell me about prayer."He said, "Pray the dawn prayer, then refrain from praying until the sun rises and climbs high, for it rises between the two horns of Satan, and at that moment the disbelievers prostrate to it. Then pray, for the prayer is witnessed and attended, until the shadow becomes equal to the spear at midday. Then refrain from praying, for at that time Hell is stoked. When the shadow lengthens, pray, for the prayer is witnessed and attended, until you have prayed the afternoon prayer. Then refrain from praying until the sun sets, for it sets between the two horns of Satan, and at that moment the disbelievers prostrate to it."

Azami 2486

Sahih

عن عمرو بن عبسة السلمي قال

قلت: يا نبي الله أخبرني عما علمك الله وأجهله. أخبرني عن الصلاة. قال: صل صلاة الصبح. ثم أقصر عن الصلاة حتى تطلع الشمس حتى ترتفع، فإنها تطلع حين تطلع بين قرني شيطان، وحينئذ يسجد لها الكفار، ثم صل فإن الصلاة مشهودة محضورة حتى يستقل الظل بالرمح، ثم أقصر عن الصلاة فإن حينئذ تسجر جهنم، فإذا أقبل الفى فصل فإن الصلاة مشهودة محضورة حتى تصلي العصر، ثم أقصر عن الصلاة حتى تغرب الشمس، فإنها تغرب بين قرني شيطان، وحينئذ يسجد لها الكفار.

الأعظمي 2486صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Forbidden times for prayer
Section
Three times the Prophet ﷺ forbade praying during them
Numbering
Jami al-Kamil 2486 (2nd edition)
Azami 2486