(11) باب صِفَةِ إِبْلِيسَ وَجُنُودِهِ
Narrated Ibn `Umar:
Allah's Messenger (ﷺ) said, "When the (upper) edge of the sun appears (in the morning), don't perform a prayer till the sun appears in full, and when the lower edge of the sun sets, don't perform a prayer till it sets completely. And you should not seek to pray at sunrise or sunset for the sun rises between two sides of the head of the devil (or Satan).
Reference: Sahih al-Bukhari 3272, 3273
In-book reference: Book 59, Hadith 82
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 4, Book 54, Hadith 494