جَامِعُ التِّرْمِذِيِّ

Jami at-Tirmidhi, hadithi 2

Mlango: The Book on Purification — On the Virtue of Purification

Ali ibn Abi Talib (Companion) → Muhammad ibn al-Hanafiyyah (his son) → 'Abdullah ibn Muhammad ibn 'Aqil → Sufyan (ath-Thawri) → [two parallel routes: Waki' ibn al-Jarrah, and 'Abd ar-Rahman ibn Mahdi] → Qutaybah / Hannad / Mahmud ibn Ghaylan and Muhammad ibn Bashshar → Imam at-Tirmidhi

حَدَّثَنَا قُتَيْبَةُ، وَهَنَّادٌ، وَمَحْمُودُ بْنُ غَيْلاَنَ، قَالُوا حَدَّثَنَا وَكِيعٌ، عَنْ سُفْيَانَ، ح وَحَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ، حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ اللَّهِ بْنِ مُحَمَّدِ بْنِ عَقِيلٍ، عَنْ مُحَمَّدِ ابْنِ الْحَنَفِيَّةِ، عَنْ عَلِيٍّ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ: "مِفْتَاحُ الصَّلاَةِ الطُّهُورُ، وَتَحْرِيمُهَا التَّكْبِيرُ، وَتَحْلِيلُهَا التَّسْلِيمُ".

Ali ibn Abi Talib reported that the Prophet, peace be upon him, said: 'The key to the prayer is purification, its entry into a sacred state is the opening declaration of Allah's greatness (Takbir), and its exit is the closing greeting of peace (Taslim).'

Imesimuliwa na Ali ibn Abi Talib Jami at-Tirmidhi, Hadith 2 Hasan

Explanation

In a single sentence, this hadith summarizes the entire structure of the Islamic prayer (salah) using the metaphor of a locked door. Purification (tahara) is described as the 'key' (miftah), meaning that without it the prayer cannot even begin, since ritual cleanliness through wudu or, when necessary, ghusl or tayammum is an absolute precondition. The Takbir, the opening declaration 'Allahu Akbar,' is described as tahrimuha, literally 'that which makes it sacred/forbidden,' meaning it is the threshold act that formally enters the worshipper into the sanctified state of prayer, during which ordinary speech, movement, and eating become impermissible.

The Taslim, the closing greeting of peace turned to both sides, is described as tahlilluha, that which releases the worshipper from that sacred state back into ordinary activity.

This hadith therefore functions as a compact legal and spiritual map of salah, showing that Islamic prayer is not simply a set of physical movements but a bounded ritual state, entered and exited through specific verbal declarations, with purification serving as the non-negotiable gate that must be passed through first. This is why Islamic jurisprudence treats invalidated wudu as something that immediately invalidates the prayer itself, however sincere the worshipper's heart may be at that moment.

When and why it was said

This teaching would have been especially important in the early Muslim community as converts from diverse backgrounds, some with prior ritual practices very different from Islamic prayer, needed a clear, memorable framework for understanding exactly what made prayer valid or invalid. A short, structured saying like this one served an almost catechetical function, giving new Muslims and their teachers an easily transmitted formula covering the entire architecture of salah in a single breath, which likely aided its preservation and spread across the early generations.

What the scholars said

Imam at-Tirmidhi himself, in his customary practice of commenting on hadiths within his own collection, notes that this narration is the most authentic report available on this specific topic, praising it above other similar reports, while also observing that one of its narrators, 'Abdullah ibn Muhammad ibn 'Aqil, was considered generally truthful (saduq) though some hadith critics had reservations about the precision of his memory, which is part of why later scholars typically grade this hadith as hasan (good) rather than sahih (rigorously authentic) in the strictest sense.

Later jurists across the legal schools built substantial fiqh directly on this hadith's three-part structure. The requirement that wudu precede prayer, the ruling that the Takbir must be said with specific wording and formally begins the prayer, and the ruling that the Taslim is what concludes it, are all points of established jurisprudence that scholars trace back partly to this concise formulation, even though the individual rulings are also supported by other, independently transmitted evidence throughout the wider corpus of hadith.

Putting it into practice

This hadith gives Muslims a simple mental checklist to use before and during every prayer: confirm your state of purity first, understand that saying the Takbir is the moment you formally 'enter' prayer and must stop all worldly speech and distraction, and recognize that the Taslim is the deliberate, conscious moment you 'exit' back into ordinary life. Reciting this hadith to oneself occasionally, especially when teaching children the basics of salah, reinforces why rushing through wudu or mumbling the Takbir undermines the entire structure of the prayer that follows.

A second, more reflective application is to use the 'locked door' metaphor as a tool for improving khushu' (focused humility) in prayer. Just as a person naturally becomes more attentive when passing through a doorway into a formal, important space, treating the Takbir consciously as a genuine threshold, rather than an automatic opening phrase said on autopilot, can help re-anchor the worshipper's attention at the very start of every prayer, five times a day, as a small but repeated act of mindfulness.

The Prophet's character ﷺ

This hadith reveals the Prophet's ﷺ gift for pedagogical clarity, distilling an entire ritual system into a memorable, structured image that any listener, regardless of education, could grasp and retain. His teaching method consistently favored concise, vivid formulations over lengthy abstract explanation, reflecting a deep concern for making the religion accessible to people of every background and capacity.

Companion spotlight

Ali ibn Abi Talib was raised in the household of the Prophet ﷺ from a young age after his father, Abu Talib, faced financial hardship, and he was among the earliest converts to Islam. He later became the Prophet's ﷺ son-in-law through marriage to Fatimah and eventually the fourth Rightly Guided Caliph, and his exceptionally close, lifelong proximity to the Prophet ﷺ made him a primary source for detailed reports on both the spiritual and legal dimensions of Islamic ritual practice, including precise matters of prayer such as this one.

Through a companion's eyes

My son asked me once to explain the prayer simply enough that even a child could hold the whole shape of it in his mind, and I found myself returning to words I had heard the Messenger of Allah, peace be upon him, say so long ago. I told him: think of it as a door. You cannot walk through a locked door, and the water of wudu is the key that opens it.

Once you are through, the Takbir seals the door behind you; nothing of this world may follow you in. And when you are ready to return, it is the Taslim, the peace you offer to your right and your left, that opens the door again and lets you step back out. He was quiet for a long moment, and I could see him understanding, for the first time, that prayer has a shape. (Creative narrative based on authentic hadith)

Differences of opinion

Jurists have differed on secondary questions connected to this hadith's framework, such as the exact wording required for a valid Takbir (whether only 'Allahu Akbar' suffices or whether close synonyms are also acceptable) and whether the Taslim must be said aloud in every prayer or may sometimes be silent, particularly for someone praying alone versus leading others. The Hanafi school, for example, holds a distinct position on some of these wording questions compared to the Shafi'i and Maliki schools, though all agree on the hadith's core structural principle that these three elements together define the boundaries of valid prayer.

What would you do?

A friend tells you they sometimes rush through wudu because they feel late for prayer and figure that 'the intention in my heart matters more than the water anyway.' Using the framework this hadith provides, how would you explain to your friend, gently and without lecturing, why purification functions as a genuine precondition rather than a flexible formality, while still being encouraging rather than discouraging about their effort to pray on time?

Hasan: good and acceptable as evidence.

Toleo jipya la programu ya Sakeenah liko tayari. Gusa ili kusasisha.

Tafuta Sakeenah

Jaribu: Patience Mercy Ramadan Prophet Yusuf Forgiveness

Mwonekano

Hali

Rangi

Mwandiko

Lugha

Chunguza

Read & reflect

Chunguza

Community