Uqba bin Amir reported,

There are three times during which the Messenger of Allah ﷺ forbade us to pray or to bury our dead: when the sun is rising until it has fully ascended, when the sun is at its zenith at midday until it begins to decline, and when the sun is drawing near to setting until it has set.

Azami 2485

Sahih

عن عقبة بن عامر قال

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

الأعظمي 2485صحيح
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 2485 (2nd edition)
Azami 2485