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 until it begins to decline, and when the sun is drawing close to setting until it has set.

Azami 3772

Sahih

عن عقبة بن عامر الجهني قال

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

الأعظمي 3772صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Burial and its related matters
Section
Times when funeral prayer is disliked
Numbering
Jami al-Kamil 3772 (2nd edition)
Azami 3772