Narrated 'Uqbah bin 'Amir: There were three times at which the Messenger of Allah ﷺ used to forbid us to pray or bury our dead - when the sun begins to rise till it is fully up, when the sun is at its height midway till it passes the meridian, and when the sun draws near to setting till it sets, or as he said.
The Prophet ﷺ was very clear about this teaching and emphasized that we must abide by his instructions in order to maintain a proper Islamic lifestyle. He wanted us to be aware of our actions so that we can live a life full of piety and righteousness. This hadith teaches us about respecting time and being mindful of our actions so as not to go against Islamic teachings.