The Messenger of Allah ﷺ said, "None of you should deliberately seek to pray at the time of sunrise or at the time of sunset."
حدثنا عبد الرزاق حدثنا مالك عن نافع
قال رسول الله ﷺ لا يتحر أحدكم أن يصلي عند طلوع الشمس ولا عند غروبها
Its isnad is sahih, and it is a repetition of 4840.