Zayd bin Thabit reported,

The Prophet ﷺ forbade praying when the upper edge of the sun is rising or when it is setting, and he said, "It rises between the two horns of a devil," or, "from between the two horns of a devil."

Azami 2505

Sahih

عن زيد بن ثابت

أن النبي ﷺ نهى أن يصلى إذا طلع قرن الشمس، أو غاب قرنها، وقال: إنها تطلع بين قرني شيطان أو من بين قرني شيطان.

الأعظمي 2505صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Forbidden times for prayer
Section
Prohibition of prayer at sunrise and sunset
Numbering
Jami al-Kamil 2505 (2nd edition)
Azami 2505