The Book of Prayers (Kitab Al-Salat)

Muslim :: Book 4 : Hadith 1807

Ibn 'Umar reported Allah's Messenger (may peace be upon him) 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.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star