The Prophet ﷺ said, "When you pray Fajr, its time extends until the first edge of the sun rises. When you pray Zuhr, its time extends until Asr arrives. When you pray Asr, its time extends until the sun turns yellow. When you pray Maghrib, its time extends until the twilight disappears. When you pray Isha, its time extends until the middle of the night."In another narration, "The time for Zuhr lasts as long as Asr has not arrived, the time for Asr lasts as long as the sun has not turned yellow, the time for Maghrib lasts as long as the spreading red twilight has not fallen, the time for Isha extends until the middle of the night, and the time for Fajr lasts as long as the sun has not risen."In another narration, "The time for Zuhr begins when the sun has passed its zenith and a man's shadow equals his height, lasting as long as Asr has not arrived. The time for Asr lasts as long as the sun has not turned yellow. The time for Maghrib lasts as long as the twilight has not disappeared. The time for Isha extends until the middle of the night. The time for Fajr begins with the break of dawn and lasts as long as the sun has not risen. When the sun rises, refrain from praying, for it rises between the two horns of Shaytan."In another narration, the Messenger of Allah ﷺ was asked about the prayer times and he said, "The time for Fajr lasts as long as the first edge of the sun has not risen. The time for Zuhr begins when the sun moves past the middle of the sky, lasting as long as Asr has not arrived. The time for Asr lasts as long as the sun has not turned yellow and its first edge has not set. The time for Maghrib begins when the sun has set, lasting as long as the twilight has not disappeared. The time for Isha extends until the middle of the night."
أن النبي ﷺ قال: إذا صليتم الفجر فإنه وقت إلى أن يطلع قرن الشمس الأول، ثم إذا صليتم الظهر فإنه وقت إلى أن يحضر العصر، فإذا صليتم العصر فإنه وقت إلى أن تصفر الشمس، فإذا صليتم المغرب فإنه وقت إلى أن يسقط الشفق، فإذا صليتم العشاء فإنه وقت إلى نصف الليل. وفي رواية: وقت الظهر ما لم يحضر العصر، ووقت العصر ما لم تصفر الشمس، ووقت المغرب ما لم يسقط ثور الشفق، ووقت العشاء إلى نصف الليل، وقت الفجر ما لم تطلع الشمس. وفي رواية: وقت الظهر إذا زالت الشمس، وكان ظل الرجل كطوله، ما لم يحضر العصر، ووقت العصر ما لم تصفر الشمس، و وقت صلاة المغرب ما لم يغب الشفق، ووقت صلاة العشاء إلى نصف الليل الأوسط، ووقت صلاة الصبح من طلوع الفجر ما لم تطلع الشمس، فإذا طلعت الشمس فأمسك عن الصلاة، فإنها تطلع بين قرني شيطان. وفي رواية سئل رسول الله ﷺ عن الصلوات فقال: وقت صلاة الفجر ما لم يطلع قرن الشمس الأول، ووقت صلاة الظهر إذا زالت الشمس عن بطن السماء ما لم يحضر العصر، ووقت صلاة العصر ما لم تضفر الشمس ويسقط قرنها الأول، ووقت صلاة المغرب إذا غابت الشمس ما لم يسقط الشفق، ووقت صلاة العشاء إلى نصف الليل.
Muslim narrated it in "The Book of Mosques" (612). All these narrations are transmitted through Qatada, from Abu Ayub, from Abdullah bin Amr, who related it similarly.