Abdullah bin Umar reported,

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

Azami 2499

Sahih

عن ابن عمر

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

الأعظمي 2499صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Forbidden times for prayer
Section
Prohibition of prayer at sunrise and sunset
Numbering
Jami al-Kamil 2499 (2nd edition)
Azami 2499