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