It is narrated from Sayyiduna Hulb al-Ta'i (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) was asked: Is there any time that prevents us from praying? He (peace and blessings be upon him) said: "No, except at the time of the sun's rising and its setting, for it rises between the two horns of Satan and sets upon the two horns of Satan."
Hadith Referenceالمعجم الكبير للطبراني / باب الهاء / 18652