It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Do not intend to pray at the time of sunrise or sunset, because the sun rises between the two horns of Satan."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 5835
Hadith Gradingحکم دارالسلام:حديث صحيح، وهذا إسناد ضعيف، عبدالله بن نافع ضعيف لكنه توبع.