Sayyiduna Uqbah bin Amir al-Juhani (may Allah be pleased with him) said: There were three times in which the Messenger of Allah (peace and blessings be upon him) used to forbid us from praying or burying our dead: when the sun is rising until it has risen high, when it is midday until the sun has passed the meridian, and when the sun is close to setting until it has set.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 14869