A question: What is the wisdom behind the prohibition of prayer at these times?
The answer is twofold. First: we must know that whatever Allah and His Messenger command, or whatever Allah and His Messenger prohibit, is itself the wisdom. We must therefore submit and say, if anyone asks us about the wisdom behind any matter: the wisdom with regard to what is commanded is Allah’s and His Messenger’s command, and with regard to what is prohibited, Allah’s and His Messenger’s prohibition.
The evidence for this from the Quran is His saying, Exalted is He:
“Neither a believing man nor a believing woman has any choice in their affair when Allah and His Messenger have decreed a matter.” [al-Ahzab: 36]
Aishah, may Allah be pleased with her, was asked: “Why does a menstruating woman make up the fasts but not make up the prayers?” She replied: “This used to happen to us, and we were commanded to make up the fasts but were not commanded to make up the prayers.” (1) Thus, she cited the sunnah and did not mention the underlying reason. This is the true meaning of submission and worship: that one submits to the command of Allah and His Messenger, whether one knows its wisdom or not. If a person would not believe in something until he knew its wisdom, we would say: you are among those who follow their own desires, for you obey only when it becomes clear to you that obedience is beneficial.
Second: at these times, the polytheists worship the sun. Thus, if you were to stand and pray, that would entail resembling the polytheists, for they prostrate to the sun at its rising and at its setting, as stated in the hadith. (2)
However, an objection arises: this applies to the period from sunrise until the sun has risen to the height of a spear, and to the time when the sun inclines toward setting