It is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Do not pray when the sun is rising, for it rises between the two horns of Satan, and every disbeliever prostrates to it at that time; and do not pray when the sun is setting either, for it sets between the two horns of Satan, and every disbeliever prostrates to it at that time too; and do not pray at midday either, for at that time Hell is stoked."
Hadith Referenceالمعجم الكبير للطبراني / باب الصاد / 8074