6. The Book of the Times (of Prayer) - كتاب المواقيت
It was narrated from Ibn 'Umar that the Messenger of Allah (ﷺ) forbade praying when the sun is rising or setting.
Reference: 565English reference: Vol. 1, Book 6, Hadith 565Arabic reference: Book 6, Hadith 569In-book reference: Book 6, Hadith 72Grade: Sahih (Darussalam)Read this hadith from Darussalam Collection
أَخْبَرَنَا إِسْمَاعِيلُ بْنُ مَسْعُودٍ، أَنْبَأَنَا خَالِدٌ، حَدَّثَنَا عُبَيْدُ اللَّهِ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم نَهَى أَنْ يُصَلَّى مَعَ طُلُوعِ الشَّمْسِ أَوْ غُرُوبِهَا .