0
Worship guides

Solat Hajat: How to Pray It, Niat and When to Pray

A plain guide for Muslims in Singapore to the prayer of need: how to pray it, what to intend and recite, when to pray, and where scholars differ on its basis.

By SedekahSG Team
10 min read
Man in white baju melayu and black songkok making doa for solat hajat on a green prayer mat by an HDB flat window before dawn
Short answer

Solat hajat is a sunnah prayer of two rakaat prayed when you have a need, asking Allah to accept and fulfil it. Take wudhu, set the niat, pray two rakaat with any surah, end with salam, then praise Allah, send salawat and make your doa.

On this page 8 sections

Key takeaways

  • Times to avoid: after Subuh until sunrise, at the sun's meridian, and after Asar until sunset
  • In sujud: keep your personal request in your heart, because speaking words outside the prayer can invalidate it
  • Evidence: the hadith's chain is debated, and the Federal Territory Mufti's office follows the majority who allow the prayer
  • Best times: the last third of the night, Fridays, the day of Arafah and Ramadan

Solat hajat is the prayer of need: a sunnah prayer of two rakaat that you perform when you want Allah's help with something that matters to you, whether an exam, a job, an illness in the family or a hard decision. This guide follows the method published by Muslim.sg, the MUIS platform, and adds the hadith texts and scholars' views behind each step, so you can see what is established and where scholars differ.

What is solat hajat and what is its religious basis?

Solat hajat is a sunnah prayer of two rakaat prayed with the intention of asking Allah for help, so that what you pray for is accepted and realised.1

The name explains the purpose. Hajat is the Arabic word for need, desire or necessity, and Muslim.sg says you can perform the prayer whenever you have a need or want your prayers answered.1 Muslim.sg is part of the Islamic Religious Council of Singapore (MUIS) and works with the Asatizah Youth Network; its solat hajat guide is dated 21 March 2025.1

The basis is a hadith in which the Prophet ﷺ describes what a person with a need should do:

"Whoever has some need from Allah or from any of His creation, let him perform ablution and pray two Rak’ah"

Sunan Ibn Majah 1384

A second version, recorded as Jami` at-Tirmidhi 479, adds that the person should perform wudhu well and, after the two rakaat, praise Allah and send salawat on the Prophet ﷺ before making the doa.3 The Ibn Majah version then introduces a specific doa, covered in the doa section below.2

Notice the wording of the need: it may be "from Allah or from any of His creation". The prayer is therefore not limited to spiritual matters. The Federal Territory Mufti's office translates the end of the hadith as the person asking Allah about matters of this world and the Hereafter.4

Why scholars debate solat hajat

The Federal Territory Mufti's office in Malaysia notes that some scholars judge the hadith dhaif (weak) and say it cannot establish the prayer, while others say supporting narrations strengthen it and that it falls under fadhail al-a'maal (virtuous deeds). The office leans towards the majority of jurists, who hold that solat hajat may be performed.4

How do you perform solat hajat step by step?

Take wudhu, set your niat, pray two rakaat with any surah you can read easily, end with salam, then praise Allah, send salawat and make your doa.

  1. Take wudhu. The hadith begins with ablution, and the Tirmidhi version asks you to perform it well.
  2. Set your niat. Muslim.sg says the prayer begins by establishing the intention to pray two rakaat of sunnah hajat for Allah. The wording is in the next section.
  3. Say the takbiratul-ihram and pray two rakaat. Recite any surah you can read easily in each rakaat.
  4. Hold your request in your heart during sujud. Bring your hajat to mind while in sujud, but keep it silent.
  5. End with salam. That completes one set. You may pray another set of two if you wish.
  6. Praise Allah, send salawat and make your doa. Recite the doa taught in the hadith, then put your own needs of this world and the Hereafter before Allah.

The wudhu, niat, takbir, two rakaat and salam follow Muslim.sg's method.1 The free choice of surah comes from the Federal Territory Mufti's office, which points out that the hadith names no particular surah.4 The order of praise, salawat and doa after the prayer comes from the hadith texts on Sunnah.com.23

Most of the method is the same as any two-rakaat sunnah prayer you already know. What sets solat hajat apart is the niat at the start and the doa at the end, so those two parts get their own sections below.

Speaking your request aloud in sujud

Muslim.sg warns that uttering words outside the prayer, other than the dua of sujud itself, can invalidate the prayer. Make your personal hajat in your heart without saying the words.1

What is the niat for solat hajat?

The niat states that you are praying two rakaat of sunnah hajat for Allah, and Muslim.sg places it at the very start of the prayer, before the takbir.1

Niat for solat hajat as given by Muslim.sg (as of March 2025)
Form Wording
Rumi Usolli sunnatal-hajati rak'ataini lillah ta'ala
English meaning I intend to pray the sunnah Hajat prayer, two raka'at, for Allah s.w.t.

The wording names three things: the prayer is sunnah rather than obligatory, its purpose is a need, and it is two rakaat performed for Allah alone. That matches the structure of the prayer itself, since each set of solat hajat is two rakaat.

This guide gives the rumi and English forms only, as Muslim.sg publishes them. If you want the Arabic script or help with pronunciation, learn it from your own ustaz, who can also hear you recite it.

How many rakaat is solat hajat and which surahs can you recite?

Solat hajat is two rakaat, just like other sunnah prayers, and Muslim.sg says you may pray more than one set.1

The two rakaat come straight from the hadith, which tells the person with a need to pray two rakaat. The Federal Territory Mufti's office identifies these two rakaat as the solat sunat hajat itself.4

On surahs, the same office notes that the hadith does not name a particular surah for either rakaat, so any surah that is easy for you to recite may be read.4 You will find guides online that assign set surahs to each rakaat. The sources used here do not fix any, so a short surah you know well, recited with attention, is enough.

One set before you sleep

You pray a single set, reciting short surahs you know by heart.

Rakaat prayed2

Two sets in the last third of the night

You end the first set with salam, then pray a second set of two.

Rakaat prayed4

Praying several sets is a choice, not a requirement: Muslim.sg says only that "we may perform more than one set of prayers."1

What doa do you recite in solat hajat?

Muslim.sg says there is no specific doa fixed for after solat hajat, so you may pray for your needs in your own words, though some invocations are recommended.1

The reason is practical: every person's need is different, and the prayer goes back to the particular hajat you bring to Allah.1 Muslim.sg recommends including two invocations.

The doa taught in the hadith

Toward the end of the solat hajat hadith, the Prophet ﷺ taught a specific doa to recite, and Muslim.sg recommends including it in your prayer.1 The hadith then says the person "should ask Allah for whatever he wants in this world and in the Hereafter, for it is decreed."2

The Tirmidhi version places praise of Allah and salawat on the Prophet ﷺ before this doa.3 As for where to recite it, the Federal Territory Mufti's office leans towards reciting the doa inside the prayer, while in sujud.4 That refers to the Arabic doa from the hadith; your own request in your own words still stays in your heart while you are in the prayer. You can read the full text on the Sunnah.com page for Sunan Ibn Majah 13842.

The invocation of Prophet Yunus

Muslim.sg also suggests reciting the invocation of Prophet Yunus a.s., recorded in the Quran, abundantly as a zikir.1 Beyond these two, Muslim.sg says you may pray your heart out for your needs and wishes in your own words.1

SedekahSGWaqaf FoodMeals for orphans, hafiz students and families in need in six countries.Support now

When is the best time to pray solat hajat, and when should you avoid it?

Solat hajat has no fixed time, so you may pray it at any point of the day, apart from three periods when praying it is forbidden.1

Times when solat hajat should not be prayed, according to Muslim.sg (as of March 2025)
Period Starts Ends
After Subuh After the Subuh prayer Sunrise
Midday Sun at its meridian, about 5 minutes before Zuhur Sun passes the meridian
After Asar After the Asar prayer Sunset

Outside those periods, Muslim.sg points to blessed times. The last third of every night is singled out for solat hajat.1 Muslim.sg also recommends the prayer on other blessed days and nights, such as every Friday, the day of Arafah and the month of Ramadan.1 For another sunnah prayer and when to pray it, see our guide to solat dhuha.

In practice, if you already wake for tahajjud or for suhoor in Ramadan, adding two rakaat of solat hajat before Subuh is an easy habit to build.

Praying hajat after Asar

In a fatwa dated 17 January 2017, S.S Datuk Dr. Zulkifli Bin Mohamad Al-Bakri, Mufti of the Federal Territories, stated that in fiqh a sunnah prayer after Asar is makruh, apart from specific exceptions. The ruling cites the hadith narrated by al-Bukhari (581).6

How does sedekah support your doa for a need?

The Quran links sedekah with asking in one specific case: believers were told to offer something in sedekah before consulting the Messenger ﷺ privately, as this was better and purer for them.7

The verse is Surah Al-Mujadila, verse 12. The abridged tafsir of Ibn Kathir on Quran.com explains that the sedekah offered beforehand cleanses and purifies the person, making them worthy of a private audience with the Prophet ﷺ.7 The same verse adds that if you lack the means, Allah is All-Forgiving, Most Merciful, so nobody is blamed for having nothing to offer.7

The verse addresses one particular situation, so read it as a lesson in preparing yourself before you ask, not as a rule that a doa needs a payment or a promise that sedekah guarantees an answer. If you want to know how scholars apply it to solat hajat, ask your own ustaz.

If you would like to pair your prayer with a lasting deed, Waqaf Food provides meals for students and families overseas, and our food support for madrasah students page shows how those meals reach children learning the Quran. Some readers prefer a deed tied to the Quran itself, such as a Khataman Al-Qur'an, or a water well in Bangladesh.

For more on prayer, fidyah and zakat, browse our worship guides. If you have a question about any SedekahSG project, our contact page reaches the team directly.

Questions people also ask

Is the hadith on solat hajat authentic?

Jami` at-Tirmidhi 479 records the grade hasan gharib and notes that the chain has been criticised, because the narrator Fa'id bin 'Abdur-Rahman is considered weak. The Federal Territory Mufti's office, discussing the narration from Abdullah ibn Abi Awfa al-Aslami, still sides with the majority of jurists who allow the prayer as a virtuous deed.

Can solat hajat be prayed in congregation (berjemaah)?

Yes. Muslim.sg says it is best prayed individually but may be prayed in congregation, especially when a serious matter calls for a communal effort. The Federal Territory Mufti's office allows it from time to time, citing al-Nawawi's Al-Majmu' that praying such sunnah prayers in congregation is permitted and not makruh, but prefers praying alone if that brings more khusyuk.

Can I pray solat hajat for someone else, such as a sick relative or a student sitting exams?

The hadith speaks of any need from Allah or from His creation, and Muslim.sg notes that the need differs from person to person. None of the sources used here addresses praying on another person's behalf directly, so put the specific case to your own ustaz.

Can I make my doa in Malay or English instead of Arabic?

Inside the prayer, the Federal Territory Mufti's office says no scholar allows reciting a doa in sujud in another language, apart from odd views; if you do not know Arabic, make the doa in your heart in a language you understand. The office also encourages learning the meaning and pronunciation of what you recite, as this helps khusyuk.

Can solat hajat be prayed on several days, or combined with another sunnah prayer?

Muslim.sg says it has no fixed time and you may pray more than one set, and bimbinganislam.com holds it may be prayed several times a day. The Federal Territory Mufti's office allows solat hajat straight after a fardhu prayer, with the ba'diyah prayed later within its time, though it prefers the order of fardhu then rawatib.

Feed a family today

Waqaf Food provides meals for orphans, hafiz students and families in need in Indonesia, Bangladesh, Cambodia, Thailand, the Philippines and for Rohingya families.

  • Photo & video update from S$100 per name
  • Certificate from S$1,000
Support now
Written by the SedekahSG Team

SedekahSG is based in Singapore. We check every rule, rate and date against its original source before we publish, and update this guide when the rules change.

Sources (11)
  1. Muslim.sg (MUIS), How to Perform Solat Hajat.Used in: 1. What it is · 2. Step by step · 3. NiatAs of March 2025
  2. Sunnah.com, Sunan Ibn Majah 1384.Used in: 1. What it is · 2. Step by step · 5. DoaChecked 20 Nov 2026
  3. Sunnah.com, Jami` at-Tirmidhi 479.Used in: 1. What it is · 2. Step by step · 5. Doa
  4. Federal Territory Mufti Office, Malaysia, Al-Kafi #656: Solat Hajat Secara Berjamaah.Used in: 1. What it is · 2. Step by step · 4. Rakaat and surahsAs of 29 Ogos 2017
  5. Sunnah.com, Sahih al-Bukhari 1145.Background reading for this guide
  6. Federal Territory Mufti Office, Malaysia, Irsyad al-Fatwa Siri 164: Hukum Menunaikan Solat Sunat Selepas Asar.Used in: 6. Best timesAs of 17 Januari 2017
  7. Quran.com, Surah Al-Mujadila 58:12.Used in: 7. Sedekah and doa
  8. Federal Territory Mufti Office, Malaysia, Al-Kafi #206: Membaca Zikir dan Doa Selain Bahasa Arab di dalam Sujud.Background reading for this guideAs of March 2016
  9. Federal Territory Mufti Office, Malaysia, Al-Kafi #831: Hukum Dahulukan Solat Hajat Mengatasi Solat Rawatib.Background reading for this guideAs of October 2018
  10. Federal Territory Mufti Office, Malaysia, Al-Kafi #656: Solat Hajat.Background reading for this guideAs of August 2017
  11. bimbinganislam.com, Bolehkah Melakukan Shalat Hajat Lebih dari Sekali Sehari.Background reading for this guideAs of 23 November 2016 M
Was this helpful?
Share
Support now
0 itemsS$0