Skip to content
Miraj Stories

What Is the 7-7-7 Rule in Islam? Where It Comes From

The three stages of seven years, the actual texts and who said them, the hadith of prayer at seven, and what the first stage looks like at home this week.

10 min read Areeba Hasan

A mother in a blue hijab kneels on the grass beside her small daughter and a tower of wooden blocks, a ball and an open book nearby

Summary

The 7-7-7 rule divides raising a child into three stages of seven years: let them play, then teach and discipline them, then keep them close and give them responsibility. It is not a hadith of Prophet Muhammad (peace be upon him): the wordings that can be traced to a book are sayings of Ali ibn Abi Talib (may Allah be pleased with him) and Imam Ja'far al-Sadiq in Shia hadith collections, and Sunni writers pass it on as wisdom attributed to Ali ibn Abi Talib. Many Muslim parents use it as a guide, not a law.

Perhaps it reached you as a reel in the family group chat: "Play with them for seven years, teach them for seven years, befriend them for seven years." Some posts call it a hadith, some call it the advice of Ali ibn Abi Talib (may Allah be pleased with him), some write it as the "777 rule in Islam" or the "7 7 7 rule", and a few mix it up with a different 7-7-7 rule from TikTok. This guide sets out what the old texts actually say, who said them, and what each stage can look like for your own child, with ideas for four and five year olds and older.

What is the 7-7-7 rule in Islam?

The 7-7-7 rule divides the first twenty-one years of a child's life into three stages of seven years, each with its own job for the parent. The popular version, with what each stage can look like at home:

StageAgesThe old wordingAt home
First sevenBirth to 7"play", "nurtured"Play, stories, love, manners by example
Second seven7 to 14"discipline", "learn how to read and write"Prayer, Quran, clear rules, gentle correction
Third seven14 to 21"keep him close", "employed (given responsibility)", "the lawful and unlawful"Talk, listen, trust them with real jobs

The three stages of the 7-7-7 rule as objects on a pink background: building blocks, a ball and a toy duck; a picture book, pencils, a prayer mat and a book stand; a key, a mug, a bicycle helmet and a potted plant

The popular version calls the stages play, teach and befriend. The word "befriend" is the one most posts use, but it is a modern paraphrase. None of the texts below says it. They say "keep him close to yourself" and "given responsibility", which is close in spirit: a teenager who stays near you and is trusted with real work.

Is the 7-7-7 rule a hadith?

No. The rule is not a saying of the Prophet (peace be upon him). The wordings that can be traced to a book are sayings of Imam Ja'far al-Sadiq and of Ali ibn Abi Talib in two Shia hadith collections, Man La Yahduruhu al-Faqih and al-Kafi. When asked about the version credited to the Prophet ("play with him for seven, discipline him for seven, befriend him for seven"), Shaykh Ibn Baz answered that it "has no basis" (لا أصل له) (Ibn Baz, fatwa 4268).

What do the texts actually say?

There are three versions, close to each other but not the same:

  • Imam Ja'far al-Sadiq, in Man La Yahduruhu al-Faqih, volume 3, chapter 53: "Let your child play for seven years, then discipline him for seven years, and then keep him close to yourself for seven years" (Thaqalayn).
  • Ali ibn Abi Talib, in the same chapter: "A child should be nurtured for seven years, disciplined for seven years, and then employed (given responsibility) for seven years" (Thaqalayn).
  • Imam Ja'far al-Sadiq, in al-Kafi, volume 6, chapter 33: "A boy can play for seven years, learn how to read and write for another seven years and learn the lawful and unlawful matters in another seven years" (Thaqalayn).

Notice that the second stage is not only "teach". It is also discipline, reading and writing, and later the lawful and the unlawful.

How do scholars treat it?

Scholars treat it differently, and you do not need to settle the question to use the idea. In Shia scholarship these are narrations of the Imams, recorded in hadith books. In Sunni writing, the attribution to Ali ibn Abi Talib is not settled: the popular guides we read give no reference to a hadith book for it, and one calls it "not a hadith of the Prophet ﷺ, but a wisdom-based guideline (ḥikmah) attributed" to Ali ibn Abi Talib (IslamicEA). Other Sunni sources name other people. IslamWeb says some books on raising children attribute it to Umar ibn al-Khattab (may Allah be pleased with him), though that attribution is questionable (IslamWeb fatwa 16862, in Arabic). IslamQA notes that some books of adab record it as a saying of the Umayyad caliph Abd al-Malik ibn Marwan (IslamQA 145946, in Arabic).

What both sides share is the spirit of it: gentleness with small children, more structure as they grow, and closeness with teenagers. That spirit matches the mercy the Prophet showed children, as the next section shows. For the family, the practical answer is simple: use the rule as a helpful way to think about stages, and do not quote it as a hadith of the Prophet.

What does "let them play for seven years" look like for a young child?

It means play is the teaching at this age. A four or five year old learns Islam best through stories, copying you, and feeling loved, not through lectures or long lists of rules.

The Prophet (peace be upon him) played and joked with small children. Anas ibn Malik (may Allah be pleased with him) said the Prophet "used to mix with us to the extent that he would say to a younger brother of mine, 'O Aba ʿUmair! What did the Nughair (a kind of bird) do?'" (Sahih al-Bukhari 6129). He asked a small boy about his pet bird: the first seven years in one line.

What this can look like this week:

  • A story at bedtime. Short stories of the prophets and of kind children give your child words for Allah, for saying sorry, for sharing.
  • Manners by copying. Say "Bismillah" before you eat and "Alhamdulillah" after, out loud, every time. Your child will copy long before they can explain it.
  • Dua in the day. A small dua when you leave the house, when it rains, when someone is ill.
  • The mosque as an outing. A short visit, a snack after, no pressure to stand still.
  • Play as play. Building, drawing, running in the park.

"Play" does not mean no rules. A child in the first stage still learns not to hit, to say please and to tidy up. The difference is the tone: gentle, patient and mostly by example. If you want help with the stories, our app has stories and games made for this age; you can see what is there for four and five year olds in the library.

What changes at seven?

At seven the second stage begins: more teaching, clear routines and gentle discipline. It also lines up with the hadith most parents set beside the rule, about prayer.

The Prophet (peace be upon him) said: "Command your children to pray when they are seven years old, and discipline them for it when they are ten years old, and separate them in their beds" (Sunan Abi Dawud 495, graded hasan sahih by al-Albani). In another narration, from Sabrah ibn Ma'bad (may Allah be pleased with him), the Prophet said to teach a boy the prayer when he is seven and to discipline him for it when he is ten (Jami' al-Tirmidhi 407).

Scholars differ on the second half, about ten, and on how firm "discipline" should be:

  • Al-Tirmidhi graded his narration hasan sahih (good and sound), and al-Albani graded both narrations hasan sahih (Jami' al-Tirmidhi 407; Sunan Abi Dawud 495).
  • Ibn Hazm said of the narration from Sabrah ibn Ma'bad (the same hadith in Abu Dawud): "هذا حديث لا يصح", "this hadith is not sound" (listed among the scholars' grades of Sunan Abi Dawud 494).
  • Shaykh Akram Nadwi wrote in 2025 that the two hadiths about disciplining children at ten "suffer from substantial weaknesses in their chains of transmission", and that parents should build the habit of prayer "through gentleness, patience, and gradual instruction" (Akram Nadwi, 17 November 2025).

Whatever view your family follows, the practical answer for a seven year old is the same: start gently. Pray beside them, let them stand next to you, praise each prayer they join, and make the first prayers short and happy. The Quran gives the tone in Luqman's advice to his son: "O my dear son! Establish prayer, encourage what is good and forbid what is evil, and endure patiently whatever befalls you" (Quran 31:17, The Clear Quran).

A story the night before helps. Our music-free animation Come to Prayer, Come to Success follows a grandfather racing to his mosque in time to call the prayer, and our stories about salah gather more. For the rest of this stage, from reading to good manners at school, see what we have for six and seven year olds.

What about the third seven years?

From about fourteen, the job changes again: keep them close and trust them with responsibility. The old texts say "keep him close to yourself" and "employed (given responsibility)". For a teenager that can mean real jobs in the home and the mosque, decisions they make themselves, and a parent who listens more than they lecture. The work of the first two stages is the ground for this one: the hope is that a child who was played with and taught gently will still want to talk to you at fifteen.

For more on raising children with Islamic values as a whole, read our guide to what tarbiyah means for Muslim families.

Is it the same as the TikTok 7-7-7 rule?

No. The TikTok 7-7-7 rule is a different, newer idea with the same name. It "encourages parents to allocate seven minutes in the morning, seven minutes after school or work and seven minutes before bedtime for dedicated screen-free time with each child" (Australian Psychological Society, 21 April 2026).

Zena Burgess, chief executive of the Australian Psychological Society, said the trend "isn't a formally validated concept in psychology, and there's no strong research base showing that those exact time blocks lead to better developmental outcomes", though it "can still be useful as a simple framework" for busy parents.

The two can sit together. Seven minutes of play after school, phone away, is a good way to live the first stage of the older rule.

Frequently asked questions about the 7-7-7 rule

Is the 7-7-7 rule a hadith of the Prophet (peace be upon him)?

No. It is not a saying of the Prophet. Its traceable wordings are sayings of Ali ibn Abi Talib and Imam Ja'far al-Sadiq in the Shia collections Man La Yahduruhu al-Faqih and al-Kafi, and Sunni writers share it as wisdom attributed to Ali ibn Abi Talib or to Umar ibn al-Khattab.

Who said "let your child play for seven years"?

That wording is from Imam Ja'far al-Sadiq, in Man La Yahduruhu al-Faqih (volume 3, chapter 53). A similar saying of his in al-Kafi (volume 6, chapter 33) begins "A boy can play for seven years". A version from Ali ibn Abi Talib in the same chapter of the Faqih says a child is "nurtured for seven years, disciplined for seven years, and then employed (given responsibility) for seven years".

Does "play for seven years" mean no rules at all?

No. A young child still learns kindness, manners and right from wrong. The first stage is about the tone: patient, gentle and mostly by your own example, with play and stories doing most of the teaching.

At what age should a child start praying?

Many parents start teaching prayer at seven, following the hadith "Command your children to pray when they are seven years old" (Sunan Abi Dawud 495). Before that, a child can stand beside you and copy. Scholars differ on the hadith's second half about ten, so teach gently and follow the scholar your family trusts.

Is the Islamic 7-7-7 rule the same as the 7-7-7 rule on TikTok?

No. The TikTok rule is seven minutes of screen-free time in the morning, after school and before bed. The Islamic rule is about three seven-year stages of childhood. They share a name, not a source.

Whichever stage your child is in, start with what they love: find stories and games for four and five year olds and for six and seven year olds.

Try Miraj Stories free for 7 days

Islamic audiobooks, picture books, videos and games for Muslim children aged 4–9. Ad-free, scholar-vetted, offline downloads, and a no-music mode.