حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللهِ بْنِ نُمَيْرٍ ، حَدَّثَنَا رَوْحٌ ، حَدَّثَنَا أُسَامَةُ بْنُ زَيْدٍ ، عَنْ حَفْصِ بْنِ عُبَيْدِ اللهِ ، عَنْ أَنَسٍ ، قَالَ رَسُولُ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - : لَا تُصَلُّوا عِنْدَ طُلُوعِ الشَّمْسِ ، وَلَا عِنْدَ غُرُوبِهَا ، فَإِنَّهَا تَطْلُعُ وَتَغْرُبُ عَلَى قَرْنِ شَيْطَانٍ ، وَصَلُّوا بَيْنَ ذَلِكَ مَا شِئْتُمْ .
It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Do not pray at the time of sunrise, nor at the time of sunset, for it rises and sets on the horn of Satan; and in the interval between these (prohibited) times, pray as much as you wish."