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 begins to rise until it has risen high, when the sun is at its zenith at midday until it passes the meridian, and when the sun draws near to setting until it has set.

Tirmidhi 1030

Sahih

حدثنا هناد حدثنا وكيع عن موسى بن علي بن رباح عن أبيه

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

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

الترمذي 1030صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Funerals
Chapter
Dislike of praying over the deceased at sunrise and at sunset
Numbering
Darussalam 1030
Tirmidhi 1030