It is narrated from Hazrat Samurah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: Do not perform prayer at the time of sunrise or sunset, because it rises and sets between the two horns of Satan.
Hadith Referenceمسند احمد / أول مسند البصريين / 20226
Hadith Gradingحکم دارالسلام:صحيح لغيره، وهذا إسناد حسن