Translation
(9) Times of the Prayers
كتاب مواقيت الصلاة
(31) Chapter: One should not try to offer As-Salat (the prayers) just before sunset
(31) باب لاَ يَتَحَرَّى الصَّلاَةَ قَبْلَ غُرُوبِ الشَّمْسِ
Sahih al-Bukhari 585 

Narrated Ibn `Umar:

Allah's Messenger (ﷺ) said, "None of you should try to pray at sunrise or sunset."

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، قَالَ أَخْبَرَنَا مَالِكٌ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ لاَ يَتَحَرَّى أَحَدُكُمْ فَيُصَلِّي عِنْدَ طُلُوعِ الشَّمْسِ وَلاَ عِنْدَ غُرُوبِهَا ‏"‏‏.‏
Reference : Sahih al-Bukhari 585
In-book reference : Book 9, Hadith 60
USC-MSA web (English) reference : Vol. 1, Book 10, Hadith 559
  (deprecated numbering scheme)