عَنْ عُقْبَةَ بْنِ عَامِرٍ الْجُهَنِيِّ رَضِيَ اللَّهُ عَنْهُ قَالَ: ثَلَاثُ سَاعَاتٍ كَانَ يَنْهَانَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ أَنْ نُصَلِّيَ فِيهَا أَوْ أَنْ نَقْبُرَ فِيهِنَّ مَوْتَانَا: حِينَ تَطْلُعُ الشَّمْسُ بَازِغَةً حَتَّى تَرْتَفِعَ، وَحِينَ يَقُومُ قَائِمُ الظَّهِيرَةِ حَتَّى تَمِيلَ الشَّمْسُ، وَحِينَ تَضَايَفَتْ لِلْغُرُوبِ حَتَّى تَغْرُبَ
Sayyiduna Uqbah bin Amir Juhani (may Allah be pleased with him) reports: The Messenger of Allah (peace and blessings be upon him) forbade us from performing prayer and burying the dead at these three times: (1) When the sun is rising, until it becomes high; (2) When the one standing at midday stands, until the sun declines; and (3) When the sun inclines to set, until it has set.