Uqba bin Amir reported,

There were 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 risen, when the sun stands at its zenith at midday until it begins to decline, and when the sun draws near to setting until it has set.

Ibn Majah 1519

Sahih

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

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

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

ابن ماجه 1519صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Funerals
Chapter
Times in which the funeral prayer is not performed over the deceased nor is burial done
Numbering
Darussalam 1519
Ibn Majah 1519