كتاب صلاة المسافرين وقصرها
6  
The Book of Prayer - Travellers
(53)
Chapter: Do not aim to pray when the sun is rising or setting
(53)
باب لاَ تَتَحَرَّوْا بِصَلاَتِكُمْ طُلُوعَ الشَّمْسِ وَلاَ غُرُوبَهَا ‏‏
Sahih Muslim 833 b

'A'isha said that the Messenger of Allah (ﷺ) did not abandon observing two rak'ahs after 'Asr, but she reported Allah's Messenger (ﷺ) 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.
وَحَدَّثَنَا حَسَنٌ الْحُلْوَانِيُّ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا مَعْمَرٌ، عَنِ ابْنِ طَاوُسٍ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، أَنَّهَا قَالَتْ لَمْ يَدَعْ رَسُولُ اللَّهِ صلى الله عليه وسلم الرَّكْعَتَيْنِ بَعْدَ الْعَصْرِ ‏.‏ قَالَ فَقَالَتْ عَائِشَةُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ لاَ تَتَحَرَّوْا طُلُوعَ الشَّمْسِ وَلاَ غُرُوبَهَا فَتُصَلُّوا عِنْدَ ذَلِكَ ‏"‏ ‏.‏
Reference : Sahih Muslim 833b
In-book reference : Book 6, Hadith 360
USC-MSA web (English) reference : Book 4, Hadith 1814
  (deprecated numbering scheme)