The three men in the cave

People Ideas

الثلاثة في الغار

The Prophet relates that three of his followers were travelling when a rock sealed the mouth of the cave they sheltered in. Each called upon God by a righteous deed he had done — feeding the poor, sheltering an orphan, honouring his parents — and the rock moved with each supplication until it opened fully; then angels of mercy and of punishment descended to witness their deeds 1 2.

Depth

At a glance

Era
The Prophetic Era
Region
Arabia

Creed

The story

The Prophet relates that three of his followers were travelling when rain overtook them and they took shelter in a cave; a rock then sealed the mouth of the cave until they were trapped inside 1 2.

The supplications and deeds

Each man looked back on a righteous deed he had done: one had fed a poor man, another had kept himself from unlawful relations in his youth, and the third had honoured his parents and carried them on his shoulders. Each called upon his Lord by that deed, and with every supplication the rock moved a little, until it opened fully and they walked out 1 2.

The descent of the angels

The hadith says God then sent them three angels — the angel of mercy, the angel of punishment and the angel of death — to test them. The angel of mercy wept for them, the angel of punishment rejoiced at the righteous deeds he saw, and the angel of death remained unmoved, neither rejoicing nor grieving 1 2.

Notes

This report is among the soundest texts on angels meeting human beings in the two Sahihs, and it stands in the Book of Heart-Softening (al-Riqaq); readers of this browser may take it as a Prophetic testimony that supplication is answered through righteous action 1 2.

Connections

Explore the connections

Related to
Angels in Islam (mala'ika)· Muhammad

People and things also explored

The angel who blows the spirit into the fetus· Angels alternate among you by night and by day· The angels boast of you· The angels say: My Lord, that is Your servant who intends an evil deed — You know him best· Roaming angels seek out gatherings of remembrance· Were it not for your sins the angels would visit you in your houses· An ifrit of the jinn seeks the Prophet on the Night Journey· The Prophet's dream of the Highest Assembly's dispute

Sources

  1. Sahih al-Bukhari
  2. Sahih Muslim
Cite this page

islam.museum contributors. “The three men in the cave”. islam.museum, https://islam.museum/en/event/cave-of-the-three-men/. CC BY-SA 4.0. Last updated 2026-11-10.

Improve this page on GitHub · Report an error · Help complete it · JSON

Wing

People

Prophets, companions, scholars, rulers, scientists, poets, travelers: women and men who shaped the story.
Related

The angel who blows the spirit into the fetus

In the hadith of human creation: he is gathered in his mother's womb forty days as a drop, then a clot, then a chewed lump; then Allah sends the angel who blows the spirit into him and commands four things — his provision, his deed, his term, and whether he is wretched or blessed Forty 4.