Abdullah bin Umar reported,

The Messenger of Allah ﷺ said, "None of you should deliberately time his prayer to coincide with sunrise or sunset."

Muslim 1924

Sahih

حدثنا يحيى بن يحيى قال قرأت على مالك عن نافع

عن ابن عمر

أن رسول الله ﷺ قال لا يتحرى أحدكم فيصلي عند طلوع الشمس ولا عند غروبها

مسلم 1924صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues of the Quran and what relates to it
Chapter
Times in which prayer is prohibited
Numbering
Darussalam 1924
Muslim 1924