عَنْ زَيْدِ بْنِ ثَابِتٍ رَضِيَ اللَّهُ عَنْهُ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ نَهَى أَنْ يُصَلَّى إِذَا طَلَعَ قَرْنُ الشَّمْسِ أَوْ غَابَ قَرْنُهَا، وَقَالَ: ((إِنَّهَا تَطْلُعُ بَيْنَ قَرْنَي شَيْطَانٍ أَوْ مِنْ بَيْنَ قَرْنَي شَيْطَانٍ))
It is narrated from Sayyiduna Zaid bin Thabit (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) forbade performing prayer at the time when the edge of the sun is rising or when its edge is setting. Also, he (peace and blessings be upon him) said: Indeed, it rises between the horns of Satan.