I heard the Prophet (ﷺ) forbidding the offering of prayers at the time of sunrise and sunset.

Sahih al-Bukhari Book 25, Hadith 113