The Messenger of Allah ﷺ said, "None of you should deliberately time his prayer to coincide with the rising or setting of the sun, for it rises between the two horns of Satan."
حدثنا وكيع حدثنا هشام بن عروة عن أبيه
كان رسول الله ﷺ يقول لا يتحرى أحدكم الصلاة طلوع الشمس ولا غروبها فإنها تطلع بين قرني الشيطان