Each prayer has a time that begins and ends, and praying in its time is a condition. Allah says that prayer is a prescribed obligation at fixed times for the believers (4:103). The Prophet ﷺ taught the beginning and the end of each time, as reported in Sahih Muslim.
1When each time begins and ends
Fajr: from true dawn until sunrise.
Dhuhr: from when the sun passes its highest point until the shadow of an object equals its length (the Asr time starts).
Asr: from then until sunset. The preferred time ends when the sun turns yellow. The permitted time lasts until the sun sets.
Maghrib: from sunset until the red twilight disappears.
Isha: from the disappearance of the twilight until the middle of the night (the preferred time), and until Fajr for those who have an excuse.
2Practical rules
Prayer before its time is not valid. If a person prays by mistake before the time, he repeats it.
Whoever wakes up for Fajr after sunrise, or forgets a prayer, prays it when he remembers.
Use a reliable timetable for your city: the page on prayer times here gives them for any place.
Where the schools differ
The four Sunni schools agree on the main ruling above and differ in these points. No school is preferred here.
The start of Asr. the Hanafi school (Abu Hanifa) says it starts when the shadow is twice the length of the object, while the other schools say it is once the length of the object. The difference is about 30 to 60 minutes.
The start of Isha in the Hanafi school (Abu Hanifa) is after the white twilight, while the other schools say after the red twilight.
Намозни адо этганингиздан сўнг Аллоҳни турган, ўтирган ва ёнбошлаган ҳолингизда эсланг. Хотиржам бўлганингизда намозни тўлиқ адо этинг. Албатта, намоз мўминларга вақтида фарз қилингандир. (Xар вақтда ҳам, ҳар намоздан кейин ҳам Аллоҳни зикир этиш тарғиб қилинади. Аммо бу ояти каримада бу иш ҳавф намозидан кейин, айниқса, зарур экани таъкидланмоқда. Ўтирганда ҳам, турганда ҳам, ёнбошлаганда ҳам, яъни, ҳамма ҳолатларда Аллоҳ таолони зикр қилиб, ундан душман билан бўладиган жангда ғалаба-нусрат сўралади.)
Кундузнинг икки тарафида ва кечанинг бир бўлагида намозни тўкис адо қил! Албатта, яхшиликлар ёмонликларни кетказади. Бу эса, эсловчиларга эслатмадир. (Уламоларимиз ояти каримадаги «Кундузнинг икки тарафида» адо қилинадиган намоз бомдод, пешин ва аср намозлари, «кечанинг бир бўлагида» адо этиладиган намоз шом ва хуфтон намозлари, дейишган. Мўмин киши томонидан қилинган ҳар бир яхши иш ёмонликларни кетказади. Намоз ўша яхшиликларнинг гултожидир. Ушбу оятда оғир ва аҳамиятли ишларни қилишда, Аллоҳнинг амрига бўйсунишда, кўрсатган йўли ва йўллаган динида мустақийм туришдек масъулиятли ишда намоз ва яхшилик қилиш ила олдинга йўл очишга ундаш бор.)
Қуёш оғишидан то кун қоронғусигача намозни тўкис адо қил. «Фажр Қуръони»ни ҳам. Албатта, «фажр Қуръони» гувоҳлантирилгандир. (Уламоларимиз, бу оятда беш вақт намозни адо этишга ишора бор, дейдилар. Қуёш қиёмдан оғиши билан Пешин вақти киради. Ҳар бир нарсанинг сояси ўзига икки баравар бўлиши билан Аср вақти киради. Қуёш ботиши билан Шом ва тун қоронғусида Хуфтон вақти бўлади. «Фажр қуръони», Бамдоддир. )
From the Sunnah
Sahih Muslim 612aAuthentic collection
The point of the hadith: The Prophet ﷺ taught the beginning and the end of the time of each prayer.
This is general information, not a fatwa. For your own situation, ask a qualified scholar.
Fiqh questions
The times of the five prayers
Each prayer has a time that begins and ends, and praying in its time is a condition. Allah says that prayer is a prescribed obligation at fixed times for the believers (4:103). The Prophet ﷺ taught the beginning and the end of each time, as reported in Sahih Muslim.
Is this a fatwa?
No. It is a summary of well-known rulings with their evidence. For your own case, ask a qualified scholar.
What if my school differs from this answer?
Follow the view of the school you follow and the scholar who teaches you. The page lists the differences of the four schools.