Sunan Ibn Majah, Book 5, Hadith 1311 (In-Book) ⓘ
It was narrated from Abu ‘Abdullah As-Sunabihi that the Messenger of Allah said: “The sun rises between the two horns of Satan” or he said “The two horns of Satan rise with it, and when it has risen, Satan parts from it. When it is in the middle of the sky he accompanies it, then when it has crossed the zenith he parts from it. When it is about to set, he accompanies it, and when it has set he parts from it. So do no pray at these three times.”
حَدَّثَنَا إِسْحَاقُ بْنُ مَنْصُورٍ، أَنْبَأَنَا عَبْدُ الرَّزَّاقِ، أَنْبَأَنَا مَعْمَرٌ، عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنْ أَبِي عَبْدِ اللَّهِ الصُّنَابِحِيِّ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَالَ " إِنَّ الشَّمْسَ تَطْلُعُ بَيْنَ قَرْنَىِ الشَّيْطَانِ - أَوْ قَالَ يَطْلُعُ مَعَهَا قَرْنَا الشَّيْطَانِ - فَإِذَا ارْتَفَعَتْ فَارَقَهَا فَإِذَا كَانَتْ فِي وَسَطِ السَّمَاءِ قَارَنَهَا فَإِذَا دَلَكَتْ - أَوْ قَالَ زَالَتْ - فَارَقَهَا فَإِذَا دَنَتْ لِلْغُرُوبِ قَارَنَهَا فَإِذَا غَرَبَتْ فَارَقَهَا فَلاَ تُصَلُّوا هَذِهِ السَّاعَاتِ الثَّلاَثَ " .
also referenced under: Hadith 1253 (Reference) & Volume 2, Book 5, Hadith 1253 (DarusSalam)