Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:4384[Chain 1] Abū Zakariyyā b. Abū Isḥāq al-Muzakkī And Ghayruh > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Rabīʿ b. Sulaymān > al-Shāfiʿī > Mālik [Chain 2] ʿAbdullāh b. Jaʿfar b. Darastawayh > Yaʿqūb b. Sufyān > Ibn Qaʿnab And Ibn Bukayr > Mālik > Zayd b. Aslam > ʿAṭāʾ b. Yasār > ʿAbdullāh al-Ṣunābiḥī

[Machine] The Messenger of Allah ﷺ said: 'Indeed, the sun rises with the horn of the devil, then when it reaches its zenith, the horn leaves it. Then when it sets, the horn returns to it. And when it comes close to the horizon, the horn is with it. Then when it sets completely, the horn leaves it.' The Messenger of Allah ﷺ prohibited praying during those times. Thus it is.  

البيهقي:٤٣٨٤أنبأ أَبُو زَكَرِيَّا بْنُ أَبِي إِسْحَاقَ الْمُزَكِّي وَغَيْرُهُ قَالُوا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ أنبأ الرَّبِيعُ بْنُ سُلَيْمَانَ أنبأ الشَّافِعِيُّ أنبأ مَالِكٌ (ح) وَأنبأ أَبُو الْحُسَيْنِ بْنُ الْفَضْلِ الْقَطَّانُ بِبَغْدَادَ أنبأ عَبْدُ اللهِ بْنُ جَعْفَرِ بْنِ دَرَسْتَوَيْهِ ثنا يَعْقُوبُ بْنُ سُفْيَانَ ثنا ابْنُ قَعْنَبٍ وَابْنُ بُكَيْرٍ عَنْ مَالِكٍ عَنْ زَيْدِ بْنِ أَسْلَمَ عَنْ عَطَاءِ بْنِ يَسَارٍ عَنْ عَبْدِ اللهِ الصُّنَابِحِيّ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ إِنَّ الشَّمْسَ تَطْلُعُ وَمَعَهَا قَرْنُ الشَّيْطَانِ فَإِذَا ارْتَفَعَتْ فَارَقَهَا ثُمَّ إِذَا اسْتَوَتْ قَارَنَهَا فَإِذَا زَالَتْ فَارَقَهَا فَإِذَا دَنَتْ لِلْغُرُوبِ قَارَنَهَا فَإِذَا غَرَبَتْ فَارَقَهَا وَنَهَى رَسُولُ اللهِ ﷺ عَنِ الصَّلَاةِ فِي تِلْكَ السَّاعَاتِ كَذَلِكَ  

رَوَاهُ مَالِكُ بْنُ أَنَسٍ وَرَوَاهُ مَعْمَرُ بْنُ رَاشِدٍ عَنْ زَيْدِ بْنِ أَسْلَمَ عَنْ عَطَاءٍ عَنْ أَبِي عَبْدِ اللهِ الصُّنَابِحِيِّ قَالَ أَبُو عِيسَى التِّرْمِذِيُّ الصَّحِيحُ رِوَايَةُ مَعْمَرٍ وَهُوَ أَبُو عَبْدِ اللهِ الصُّنَابِحِيُّ وَاسْمُهُ عَبْدُ الرَّحْمَنِ بْنُ عُسَيْلَةَ

See similar narrations below:

Collected by Nasāʾī, Mālik, Nasāʾī's Kubrá
nasai:559Qutaybah > Mālik > Zayd b. Aslam > ʿAṭāʾ b. Yasār > ʿAbdullāh al-Ṣunābiḥī

"The sun rises and with it the horn of the Shaitan, then when it is fully risen, he goes away. Then when it approaches the meridian he comes near to it, and when it has passed the zenith he goes away. Then when it is close to setting, he comes near to it, then when it has set, he goes away." And the Messenger of Allah ﷺ forbade praying at those times.  

النسائي:٥٥٩أَخْبَرَنَا قُتَيْبَةُ عَنْ مَالِكٍ عَنْ زَيْدِ بْنِ أَسْلَمَ عَنْ عَطَاءِ بْنِ يَسَارٍ عَنْ عَبْدِ اللَّهِ الصُّنَابِحِيِّ

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ الشَّمْسُ تَطْلُعُ وَمَعَهَا قَرْنُ الشَّيْطَانِ فَإِذَا ارْتَفَعَتْ فَارَقَهَا فَإِذَا اسْتَوَتْ قَارَنَهَا فَإِذَا زَالَتْ فَارَقَهَا فَإِذَا دَنَتْ لِلْغُرُوبِ قَارَنَهَا فَإِذَا غَرَبَتْ فَارَقَهَا وَنَهَى رَسُولُ اللَّهِ ﷺ عَنِ الصَّلاَةِ فِي تِلْكَ السَّاعَاتِ  

malik:15-46Yaḥyá > Mālik > Zayd b. Aslam > ʿAṭāʾ b. Yasār > ʿAbdullāh al-Ṣunābiḥī

Yahya related to me from Malik from Zayd ibn Aslam from Ata ibn Yasar from Abdullah as-Sunabihi that the Messenger of Allah ﷺ said, "The sun rises and with it is a horn of Shaytan and when the sun gets higher the horn leaves it. Then when the sun reaches the meridian the horn joins it and when the sun declines the horn leaves it, and when the sun has nearly set it joins it again." The Messenger of Allah ﷺ forbade prayer at these times.  

مالك:١٥-٤٦حَدَّثَنِي يَحْيَى عَنْ مَالِكٍ عَنْ زَيْدِ بْنِ أَسْلَمَ عَنْ عَطَاءِ بْنِ يَسَارٍ عَنْ عَبْدِ اللَّهِ الصُّنَابِحِيِّ

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ إِنَّ الشَّمْسَ تَطْلُعُ وَمَعَهَا قَرْنُ الشَّيْطَانِ فَإِذَا ارْتَفَعَتْ فَارَقَهَا ثُمَّ إِذَا اسْتَوَتْ قَارَنَهَا فَإِذَا زَالَتْ فَارَقَهَا فَإِذَا دَنَتْ لِلْغُرُوبِ قَارَنَهَا فَإِذَا غَرَبَتْ فَارَقَهَا وَنَهَى رَسُولُ اللَّهِ ﷺ عَنِ الصَّلاَةِ فِي تِلْكَ السَّاعَاتِ  

nasai-kubra:1554Qutaybah b. Saʿīd > Mālik > Zayd b. Aslam > ʿAṭāʾ b. Yasār > ʿAbdullāh al-Ṣunābiḥī

"The sun rises and with it the horn of the Shaitan, then when it is fully risen, he goes away. Then when it approaches the meridian he comes near to it, and when it has passed the zenith he goes away. Then when it is close to setting, he comes near to it, then when it has set, he goes away." And the Messenger of Allah ﷺ forbade praying at those times. (Using translation from Nasāʾī 559)  

الكبرى للنسائي:١٥٥٤أَخْبَرَنَا قُتَيْبَةُ بْنُ سَعِيدٍ عَنْ مَالِكٍ عَنْ زَيْدِ بْنِ أَسْلَمَ عَنْ عَطَاءِ بْنِ يَسَارٍ عَنْ عَبْدِ اللهِ الصُّنَابِحِيُّ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ «الشَّمْسُ تَطْلُعُ وَمَعَهَا قَرْنُ الشَّيْطَانِ فَإِذَا ارْتَفَعَتْ فَارَقَهَا فَإِذَا اسْتَوَتْ قَارَنَهَا فَإِذَا زَالَتْ فَارَقَهَا فَإِذَا دَنَتْ لِلْغُرُوبِ قَارَنَهَا فَإِذَا غَرَبَتْ فَارَقَهَا وَنَهَى رَسُولُ اللهِ ﷺ عَنِ الصَّلَاةِ فِي تِلْكَ السَّاعَاتِ»