The Book of Prayers (Kitab Al-Salat)

Muslim :: Book 4 : Hadith 1806

Ibn 'Umar reported Allah's Messenger (may peace be upon him) as saying: Let not any one of you intend to observe prayer at the time of the rising of the sun or of the setting sun.

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