The Messenger of Allah ﷺ said, "The sun rises between the two horns of Satan. When it has risen high, he parts from it. When it reaches the middle of the sky, he joins it again. When it has passed the meridian, or he said when it declines, he parts from it. As it draws near to setting, he joins it once more, and when it sets, he parts from it. So do not pray during these three times."
حدثنا عبد الرزاق حدثنا معمر عن زيد بن أسلم عن عطاء بن يسار
قال رسول الله ﷺ إن الشمس تطلع بين قرني شيطان فإذا ارتفعت فارقها فإذا كانت في وسط السماء قارنها فإذا دلكت أو قال زالت فارقها فإذا دنت للغروب قارنها فإذا غربت فارقها فلا تصلوا هذه الثلاث ساعات