Sahih Muslim, Book 6, Hadith 353 (Muslim 1908)

Ibn 'Umar reported Allah's Messenger (ﷺ) as saying:

Do not intend to observe prayer at the time of the rising of the sun nor at its setting, for it rises between the horns of Satan.