It was narrated from Abu ‘Abdullah As-Sunabihi that the Messenger of Allah (ﷺ) said:
“The sun rises between the two horns of Satan” or he said “The two horns of Satan rise with it, and when it has risen, Satan parts from it. When it is in the middle of the sky he accompanies it, then when it has crossed the zenith he parts from it. When it is about to set, he accompanies it, and when it has set he parts from it. So do no pray at these three times.”