Mishkat al-Masabih
Mishkat al-Masabih 1039
عَنِ ابْنِ عُمَرَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا يَتَحَرَّى أَحَدُكُمْ فَيُصَلِّيَ عِنْدَ طُلُوعِ الشَّمْسِ وَلَا عِنْدَ غُرُوبِهَا» وَفِي رِوَايَةٍ قَالَ: «إِذَا طَلَعَ حَاجِبُ الشَّمْسِ فدعوا الصَّلَاة حَتَّى تبرز. فَإِذا غَابَ حَاجِبُ الشَّمْسِ فَدَعُوا الصَّلَاةَ حَتَّى تَغِيبَ وَلَا تَحَيَّنُوا بِصَلَاتِكُمْ طُلُوعَ الشَّمْسِ وَلَا غُرُوبَهَا فَإِنَّهَا تطلع بَين قَرْني الشَّيْطَان»
Ibn ‘Umar reported that the Messenger of God (peace be upon him) said: ‘Let none of you deliberately choose to pray at sunrise or sunset.’ In another version he said: ‘When the sun’s rim begins to rise, stop praying until it is fully raised; and when its rim begins to set, stop praying until it has set. Do not time your prayer for sunrise or sunset, for the sun rises between Satan’s horns.’