Mishkat al-Masabih 1040
وَعَنْ عُقْبَةَ بْنِ عَامِرٍ قَالَ: ثَلَاثُ سَاعَاتٍ كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ينهانا أَن نصلي فِيهِنَّ أَو نَقْبُرَ فِيهِنَّ مَوْتَانَا: حِينَ تَطْلُعُ الشَّمْسُ بَازِغَةً حَتَّى تَرْتَفِعَ وَحِينَ يَقُومُ قَائِمُ الظَّهِيرَةِ حَتَّى تَمِيلَ الشَّمْسُ وَحِينَ تَضَيَّفُ الشَّمْسُ لِلْغُرُوبِ حَتَّى تغرب. رَوَاهُ مُسلم
From ʿUqbah ibn ʿAmir, who said: There are three times at which the Messenger of Allah ﷺ used to forbid us to pray or to bury our dead: when the sun is rising until it is high, when the sun is at its zenith at midday until it declines, and when the sun inclines to setting until it sets. Reported by Muslim.