The Messenger of Allah ﷺ said, "Do not time your prayer to coincide with the rising of the sun or its setting, for it rises between the two horns of a devil," or "of the devil." I do not know which of the two Hisham said.
ولا تحينوا بصلاتكم طلوع الشمس ولا غروبها فإنها تطلع بين قرني شيطان أو الشيطان لا أدري أي ذلك قال هشام