Sahih Muslim – Hadith No : 1961

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.

Hadith In Arabic Text :

حدثنا يحيى بن يحيى، قال قرأت على مالك عن نافع، عن ابن عمر، أن رسول الله صلى الله عليه وسلم قال ‏”‏ لا يتحرى أحدكم فيصلي عند طلوع الشمس ولا عند غروبها ‏”‏ ‏.‏

Chapter : The Book of Prayer (Travellers) – كتاب صلاة المسافرين وقصرها