Sunan an-Nasa'i, Volume 1, Book 6, Hadith 564 (DarusSalam)

It was narrated from Ibn 'Umar that the Messenger of Allah said: "No one of you should deliberately try to pray when the sun is rising, or when it is setting."

أَخْبَرَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، عَنْ مَالِكٍ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ لاَ يَتَحَرَّ أَحَدُكُمْ فَيُصَلِّيَ عِنْدَ طُلُوعِ الشَّمْسِ وَعِنْدَ غُرُوبِهَا ‏" ‏ ‏.‏

sunnah.com

also referenced under: Book 6, Hadith 568 (In-Book)