Mishkat
al-Masabih
مشكاة المصابيح
Prayer
كتاب الصلاة
Chapter 23a: Times when Prayer is Prohibited - Section 1
باب أوقات النهي - الفصل الأول
Mishkat al-Masabih 1039
Ibn ‘Umar reported Allah's Messenger ﷺ as saying, “None of you must choose for himself and pray at the rising or setting of the sun.” In a version he said, “When the rim of the sun rises leave off prayer till it comes right up, when the rim of the sun goes below the horizon leave off prayer till it has set, and do not make the rising or setting of the sun your time of prayer, for it rises between the horns of the devil.” (Bukhari and Muslim.)
عَنِ ابْنِ عُمَرَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا يَتَحَرَّى أَحَدُكُمْ فَيُصَلِّيَ عِنْدَ طُلُوعِ الشَّمْسِ وَلَا عِنْدَ غُرُوبِهَا» وَفِي رِوَايَةٍ قَالَ: «إِذَا طَلَعَ حَاجِبُ الشَّمْسِ فدعوا الصَّلَاة حَتَّى تبرز. فَإِذا غَابَ حَاجِبُ الشَّمْسِ فَدَعُوا الصَّلَاةَ حَتَّى تَغِيبَ وَلَا تَحَيَّنُوا بِصَلَاتِكُمْ طُلُوعَ الشَّمْسِ وَلَا غُرُوبَهَا فَإِنَّهَا تطلع بَين قَرْني الشَّيْطَان»
In-book reference: Mishkat al-Masabih Book 4 Chapter 23a Hadith 1