كتاب صلاة المسافرين وقصرها
6  
The Book of Prayer - Travellers
(51)
Chapter: The times when it is forbidden to offer salat
(51)
باب الأَوْقَاتِ الَّتِي نُهِيَ عَنِ الصَّلاَةِ، فِيهَا ‏.‏
Sahih Muslim 825

Abu Huraira is reported to have said that the Messenger of Allah (ﷺ) prohibited to observe prayer after the 'Asr prayer till the sun is set, and after the dawn till the sun rises.

حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، قَالَ قَرَأْتُ عَلَى مَالِكٍ عَنْ مُحَمَّدِ بْنِ يَحْيَى بْنِ حَبَّانَ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم نَهَى عَنِ الصَّلاَةِ بَعْدَ الْعَصْرِ حَتَّى تَغْرُبَ الشَّمْسُ وَعَنِ الصَّلاَةِ بَعْدَ الصُّبْحِ حَتَّى تَطْلُعَ الشَّمْسُ ‏.‏
Reference : Sahih Muslim 825
In-book reference : Book 6, Hadith 348
USC-MSA web (English) reference : Book 4, Hadith 1803
  (deprecated numbering scheme)