Mishkat al-Masabih 1048
عَن عبد الله الصنَابحِي قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّ الشَّمْسَ تَطْلُعُ وَمَعَهَا قَرْنُ الشَّيْطَانِ فَإِذَا ارْتَفَعَتْ فَارَقَهَا ثُمَّ إِذَا اسْتَوَتْ قَارَنَهَا فَإِذا زَالَت فَارقهَا فَإِذَا دَنَتْ لِلْغُرُوبِ قَارَنَهَا فَإِذَا غَرَبَتْ فَارَقَهَا» . وَنَهَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَنِ الصَّلَاةِ فِي تِلْكَ السَّاعَاتِ. رَوَاهُ مَالِكٌ وَأحمد وَالنَّسَائِيّ
From ʿAbdullah as-Sunabihi, who said: The Messenger of Allah ﷺ said: "The sun rises with the horn of Shaytan with it. When it rises high, he parts from it; then when it is at its zenith, he joins it; when it declines, he parts from it; when it draws near to setting, he joins it; and when it sets, he parts from it." And the Messenger of Allah ﷺ forbade prayer at those times. Reported by Malik, Ahmad and an-Nasaʾi.