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.
أخبرنا سويد بن نصر قال حدثنا عبد الله عن موسى بن علي بن رباح قال سمعت أبي يقول سمعت
ثلاث ساعات كان رسول الله ﷺ ينهانا أن نصلي فيهن أو نقبر فيهن موتانا حين تطلع الشمس بازغة حتى ترتفع وحين يقوم قائم الظهيرة حتى تميل وحين تضيف الشمس للغروب حتى تغرب
Muslim reported it in Kitab Salat al-Musafirin, chapter on the times when prayer is forbidden, hadith 831, from the narration of Musa bin Ali. Ibn Majah reported it, hadith 1519, from the narration of Abdullah bin Mubarak, with the same wording. It is also found in Kubra, hadith 1543.