Do not aim to pray when the sun is rising or setting
باب لاَ تَتَحَرَّوْا بِصَلاَتِكُمْ طُلُوعَ الشَّمْسِ وَلاَ غُرُوبَهَا
Sahih Muslim, Book of The Book of Prayer - Travellers(view book)
'A'isha reported that 'Umar misconstrued the fact that the Messenger of Allah ﷺ had prohibited the observance of prayer at the time of the rising sun and at the time of its setting.
حَدَّثَنَا مُحَمَّدُ بْنُ حَاتِمٍ، حَدَّثَنَا بَهْزٌ، حَدَّثَنَا وُهَيْبٌ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ طَاوُسٍ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، أَنَّهَا قَالَتْ وَهِمَ عُمَرُ إِنَّمَا نَهَى رَسُولُ اللَّهِ ﷺ أَنْ يُتَحَرَّى طُلُوعُ الشَّمْسِ وَغُرُوبُهَا .
Classification
'A'isha said that the Messenger of Allah ﷺ did not abandon observing two rak'ahs after 'Asr, but she reported Messenger of Allah ﷺ as saying: Do not get used to observe prayer at the time of the rising sun and at the time of its setting and (exhorted the Muslims) to pray at their times.
وَحَدَّثَنَا حَسَنٌ الْحُلْوَانِيُّ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا مَعْمَرٌ، عَنِ ابْنِ طَاوُسٍ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، أَنَّهَا قَالَتْ لَمْ يَدَعْ رَسُولُ اللَّهِ ﷺ الرَّكْعَتَيْنِ بَعْدَ الْعَصْرِ . قَالَ فَقَالَتْ عَائِشَةُ قَالَ رَسُولُ اللَّهِ ﷺ " لاَ تَتَحَرَّوْا طُلُوعَ الشَّمْسِ وَلاَ غُرُوبَهَا فَتُصَلُّوا عِنْدَ ذَلِكَ " .