Sayyiduna Uqbah bin Amir al-Juhani (may Allah be pleased with him) said that there were three times at which the Messenger of Allah (peace and blessings be upon him) used to forbid us from offering the funeral prayer and from burying: "When the sun is rising, until it has risen high; when it stands still at midday (in the middle of the sky), until it inclines to one side; and when the sun is close to setting, until it has completely set."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6913