Abdullah bin Umar reported,

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."

Muslim 1925

Sahih

و حدثنا أبو بكر بن أبي شيبة حدثنا وكيع ح و حدثنا محمد بن عبد الله بن نمير حدثنا أبي ومحمد بن بشر قالا جميعا حدثنا هشام عن أبيه

عن ابن عمر قال

قال رسول الله ﷺ لا تحروا بصلاتكم طلوع الشمس ولا غروبها فإنها تطلع بقرني شيطان

مسلم 1925صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues of the Quran and what relates to it
Chapter
Times in which prayer is prohibited
Numbering
Darussalam 1925