Allah's Messenger (ﷺ) said, "None of you should try to pray at sunrise or sunset."
Sahih al-Bukhari Book 9, Hadith 60