Before you start: the conditions
A prayer is only valid when a few things are in place. Purity: you need wudu (and a full bath, ghusl, after intercourse, menstruation or childbirth bleeding). The Prophet ﷺ said: “Allah does not accept a prayer without purification” (Sahih Muslim 224). Clean body, clothes and place. Covering: for men, at least from the navel to the knees; for women, the whole body except the face, hands and (in the Hanafi school) the feet. The right time: check the prayer times for your city. Facing the Qibla: find it with the Qibla finder. If you are unsure of the direction and cannot ask anyone, do your best; your prayer is valid.
Step 1: Intention (niyyah)
Stand facing the Qibla and make the intention in your heart: which prayer you are about to pray, for example “the two fard rakats of Fajr”. The intention is in the heart; you do not need to say it aloud, and there is no fixed wording. The Prophet ﷺ said: “Actions are only by intentions” (Sahih al-Bukhari 1).
Step 2: The opening takbir
Raise your hands and say اللّٰهُ أَكْبَرُ (Allāhu akbar), “Allah is the Greatest”. Men raise the hands to the earlobes; in the Hanafi school women raise them to the shoulders. This takbir is called takbirat al-ihram: from now on you may not talk, eat or turn away until the prayer ends. The Prophet ﷺ said the prayer “begins with the takbir and ends with the salam” (Sunan Abi Dawud 61).
Step 3: Folding the hands and the opening praise
Place the right hand over the left. In the Hanafi school men place them just below the navel and women on the chest; in the Shafiʿi school both place them on the chest. Look at the place where you will prostrate. Quietly say the opening praise (thana): سُبْحَانَكَ اللّٰهُمَّ وَبِحَمْدِكَ، وَتَبَارَكَ اسْمُكَ، وَتَعَالٰى جَدُّكَ، وَلَا إِلٰهَ غَيْرُكَ (Subḥānaka-llāhumma wa biḥamdika, wa tabāraka-smuka, wa taʿālā jadduka, wa lā ilāha ghayruk): “Glory be to You, O Allah, and praise; blessed is Your name, exalted is Your majesty, and there is no god but You” (Sunan Abi Dawud 775; At-Tirmidhi 243). Other opening duas are also authentic; see duas for opening the prayer.
Step 4: Al-Fatiha and a surah
Quietly say أَعُوذُ بِاللّٰهِ مِنَ الشَّيْطَانِ الرَّجِيمِ (Aʿūdhu billāhi mina-sh-shayṭāni-r-rajīm) and بِسْمِ اللّٰهِ الرَّحْمٰنِ الرَّحِيمِ (Bismillāhi-r-raḥmāni-r-raḥīm), then recite Surah Al-Fatiha. The Prophet ﷺ said: “There is no prayer for one who does not recite the Opening of the Book” (Sahih al-Bukhari 756). At its end say آمِين (Āmīn); the Hanafis say it quietly. Then recite any other surah or at least three short verses, for example Al-Ikhlas or Al-Kawthar. In Fajr, Maghrib and Isha the imam recites aloud in the first two rakats; if you pray alone you may recite aloud or quietly.
Step 5: Bowing (ruku)
Say اللّٰهُ أَكْبَرُ and bow, with your back straight and level, your hands gripping your knees, and your eyes on the ground. Say at least three times سُبْحَانَ رَبِّيَ الْعَظِيمِ (Subḥāna rabbiya-l-ʿaẓīm), “Glory be to my Lord, the Most Great” (Sahih Muslim 772). Stay still for a moment; the Prophet ﷺ told a man who rushed his prayer to go back and pray again, and taught him to be at rest in every position (Sahih al-Bukhari 757).
Step 6: Standing up from ruku
Rise saying سَمِعَ اللّٰهُ لِمَنْ حَمِدَهُ (Samiʿa-llāhu liman ḥamidah), “Allah hears whoever praises Him”, and once standing straight say رَبَّنَا لَكَ الْحَمْدُ (Rabbanā laka-l-ḥamd), “Our Lord, to You belongs all praise” (Sahih al-Bukhari 789). Let your arms hang by your sides and stand fully upright before going down.
Step 7: The first prostration (sujud)
Say اللّٰهُ أَكْبَرُ and go down, placing your knees first, then your hands, then your nose and forehead. Seven parts touch the ground: the forehead with the nose, both palms, both knees and the toes of both feet (Sahih al-Bukhari 812). Keep the fingers together, pointing to the Qibla, and the toes bent towards the Qibla. Men keep their arms off the ground and away from the sides; women keep them closer to the body. Say at least three times سُبْحَانَ رَبِّيَ الْأَعْلٰى (Subḥāna rabbiya-l-aʿlā), “Glory be to my Lord, the Most High”. The Prophet ﷺ said a servant is closest to his Lord when prostrating, so make plenty of dua there (Sahih Muslim 482); in fard prayers the Hanafis keep that dua to the Arabic words of the Quran and Sunnah.
Step 8: Sitting between the two prostrations
Say اللّٰهُ أَكْبَرُ and sit up, resting calmly on your left foot with the right foot upright. A short dua here is Sunnah: رَبِّ اغْفِرْ لِي (Rabbi-ghfir lī), “My Lord, forgive me” (Sunan Abi Dawud 874). Then say اللّٰهُ أَكْبَرُ and make the second prostration exactly like the first. This completes one rakat.
Step 9: The second rakat
Say اللّٰهُ أَكْبَرُ and stand up. The second rakat is the same as the first, except that there is no opening takbir with raised hands and no opening praise: start with Bismillah and Al-Fatiha, then a surah, ruku, standing, and two prostrations. After the second prostration, stay sitting.
Step 10: Tashahhud
Sit as between the prostrations, with your hands on your thighs, and recite the tashahhud taught by Ibn Masʿud (Sahih al-Bukhari 831): التَّحِيَّاتُ لِلّٰهِ وَالصَّلَوَاتُ وَالطَّيِّبَاتُ، السَّلَامُ عَلَيْكَ أَيُّهَا النَّبِيُّ وَرَحْمَةُ اللّٰهِ وَبَرَكَاتُهُ، السَّلَامُ عَلَيْنَا وَعَلٰى عِبَادِ اللّٰهِ الصَّالِحِينَ، أَشْهَدُ أَنْ لَا إِلٰهَ إِلَّا اللّٰهُ وَأَشْهَدُ أَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُهُ. Meaning: “All greetings, prayers and good things are for Allah. Peace be on you, O Prophet, and the mercy of Allah and His blessings. Peace be on us and on the righteous servants of Allah. I bear witness that there is no god but Allah, and I bear witness that Muhammad is His servant and messenger.” When you reach “lā ilāha”, raise your right index finger, and lower it at “illallāh” (the Hanafi practice).
Step 11: Salawat on the Prophet ﷺ
In the last sitting, send blessings on the Prophet ﷺ with the Ibrahimi salawat (Sahih al-Bukhari 3370): اللّٰهُمَّ صَلِّ عَلٰى مُحَمَّدٍ وَعَلٰى آلِ مُحَمَّدٍ، كَمَا صَلَّيْتَ عَلٰى إِبْرَاهِيمَ وَعَلٰى آلِ إِبْرَاهِيمَ، إِنَّكَ حَمِيدٌ مَجِيدٌ، اللّٰهُمَّ بَارِكْ عَلٰى مُحَمَّدٍ وَعَلٰى آلِ مُحَمَّدٍ، كَمَا بَارَكْتَ عَلٰى إِبْرَاهِيمَ وَعَلٰى آلِ إِبْرَاهِيمَ، إِنَّكَ حَمِيدٌ مَجِيدٌ. Meaning: “O Allah, send prayers on Muhammad and the family of Muhammad, as You sent prayers on Ibrahim and the family of Ibrahim; You are Praiseworthy, Glorious. O Allah, bless Muhammad and the family of Muhammad, as You blessed Ibrahim and the family of Ibrahim; You are Praiseworthy, Glorious.”
Step 12: A short dua, then the salam
Before ending, make a short dua. Abu Bakr asked the Prophet ﷺ for a dua to say in his prayer, and he taught him: اللّٰهُمَّ إِنِّي ظَلَمْتُ نَفْسِي ظُلْمًا كَثِيرًا، وَلَا يَغْفِرُ الذُّنُوبَ إِلَّا أَنْتَ، فَاغْفِرْ لِي مَغْفِرَةً مِنْ عِنْدِكَ، وَارْحَمْنِي، إِنَّكَ أَنْتَ الْغَفُورُ الرَّحِيمُ: “O Allah, I have wronged myself greatly, and none forgives sins but You; so forgive me with forgiveness from You and have mercy on me; You are the Forgiving, the Merciful” (Sahih al-Bukhari 834). Then turn your face to the right saying السَّلَامُ عَلَيْكُمْ وَرَحْمَةُ اللّٰهِ (As-salāmu ʿalaykum wa raḥmatullāh), and then to the left saying the same. Your prayer is complete. Stay seated for the adhkar after salah.
Three- and four-rakat prayers
For Maghrib (3), and Dhuhr, Asr and Isha (4): after the second rakat, sit for the tashahhud only, then say اللّٰهُ أَكْبَرُ and stand for the third rakat. In the third and fourth rakats of a fard prayer, recite only Al-Fatiha, quietly, with no extra surah. In the last rakat sit for the full tashahhud, salawat and dua, then the salam. For Witr in the Hanafi school, the third rakat has an extra takbir with raised hands after the surah and before ruku, followed by Dua Qunoot. The number of rakats for each prayer is on how many rakats in each prayer.
If you make a mistake
If you forget a required part of the prayer, such as the first sitting, or are unsure how many rakats you have prayed, it is fixed with the prostration of forgetfulness (sajdat as-sahw). In the Hanafi school: after the tashahhud in the last sitting, give one salam to the right, make two prostrations, then repeat the tashahhud, salawat and dua and finish with both salams. If you are unsure of the count, go with what you think is most likely; if you have no idea, take the lower number (Sahih al-Bukhari 401; Sahih Muslim 571). Missing a pillar of the prayer, such as a ruku or a prostration, cannot be fixed this way; that rakat must be repeated.
Tips for new Muslims and beginners
You do not need to know everything before you start praying. Until you have memorised Al-Fatiha and the tashahhud, pray with what you know, saying سُبْحَانَ اللّٰهِ, الْحَمْدُ لِلّٰهِ, لَا إِلٰهَ إِلَّا اللّٰهُ and اللّٰهُ أَكْبَرُ in their place, and keep learning; the Prophet ﷺ taught this to a man who could not yet recite (Sunan Abi Dawud 832). Learn one piece at a time: Al-Fatiha first, then a short surah, then the tashahhud. The words of the prayer page has every phrase with audio and word-by-word meaning. Praying in a masjid with others is the quickest way to learn. Children can start with salah for kids, which has a picture for each step and a star chart.