It is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) (or his brother) that the Prophet (peace and blessings be upon him) said: "Do not pray at the time the sun rises, for it rises between the two horns of Satan and at that time every disbeliever prostrates to it; and do not pray at midday (exactly at noon)," for at that time Hell is stoked.
Imam Abu Ya'la al-Mawsili (may Allah have mercy on him) recorded it thus: Sayyiduna Abu Umamah (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "There is no prayer before the sun rises, nor before it sets, nor at midday, for at that time the fire of Hell is kindled."
I (al-Busiri) say that Imam Ahmad bin Hanbal (may Allah have mercy on him) also recorded it through Layth.
In another narration of al-Harith bin Muhammad bin Abi Usamah (may Allah have mercy on him), it is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) that he met the Prophet (peace and blessings be upon him) in Makkah and asked: Who are you? He (peace and blessings be upon him) said: "I am a prophet." He asked: To whom have you been sent? He (peace and blessings be upon him) said: "I have been sent to the red and the black (all mankind)." He asked: At what time is prayer disliked? He (peace and blessings be upon him) said: "When the sun is rising, until it has risen the length of a spear."
This chain is hasan (good).