It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Do not aim with your prayers for the time of sunrise or sunset, for it rises between the two horns of Satan."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13202