Islamic history preserves many accounts of children and young people who showed faith, knowledge and courage, among them Ali ibn Abi Talib, Zayd ibn Thabit, Ibn Abbas, Anas ibn Malik, Umayr ibn Abi Waqqas and the Mu'adh brothers at Badr (ra).
- The Prophet (saw) prayed for Ibn Abbas (ra) to be given understanding of the religion (Musnad Ahmad, graded sahih), and Zayd ibn Thabit (ra) learned the Qur'an and other languages as a boy.
- At Badr, two young Ansari boys asked about Abu Jahl and struck him down, as Sahih al-Bukhari records.
- The later scholars, such as al-Shafi'i, al-Bukhari and al-Nawawi, are reported to have begun memorisation and study in childhood.
- Some popular stories about children have weak or no chains, so the best examples are those from the Qur'an and the sound hadith.
Introduction
The question asks for some inspiring children from Islamic history. The sources give many examples, from the Companions of the Prophet (saw) to the scholars of later centuries, and they show children as capable of faith and service. This answer selects those with the soundest reports, and notes where a story rests on weaker biographical material. It treats childhood as the years before adulthood, which for some of these figures means a boy of ten to sixteen.
The Qur'an itself holds up a child's wisdom in the case of Yahya (as), to whom Allah said: 'O Yahya, take the Book with strength', and 'We gave him judgement while yet a child' (19:12), and in the story of the boy in Surat al-Kahf who was killed because of what he would become, in the knowledge of Allah (18:80).
Children among the Companions
Ali ibn Abi Talib (ra). Ali (ra) was raised in the household of the Prophet (saw) and is reported by early biographers such as Ibn Ishaq to have accepted Islam as a boy, with ages given between eight and thirteen. When the Quraysh plotted to kill the Prophet (saw) on the night of the Hijra, Ali (ra) lay in his bed so that the plotters would think he was there, according to the sira. Scholars debate the exact details, but the main facts appear in Ibn Hisham and in Musnad Ahmad.
Zayd ibn Thabit (ra). Zayd (ra) was about eleven when the Prophet (saw) arrived in Madinah, and it is reported that he had already learnt many surahs. The Prophet (saw) later asked him to learn the writing of the Jews and he did so in a short time, as the report in Jami' al-Tirmidhi (hasan sahih) records. He wrote down revelation, and under Abu Bakr (ra) he was chosen to collect the Qur'an into a single volume, as Sahih al-Bukhari relates in the Book of the Virtues of the Qur'an, where Abu Bakr (ra) said: 'You are a young man, intelligent, and we do not suspect you.'
'Abdullah ibn 'Abbas (ra). He was about thirteen when the Prophet (saw) died. The Prophet (saw) is reported to have placed his hand on his shoulder and prayed: 'O Allah, give him understanding of the religion and teach him the interpretation' (Musnad Ahmad, graded sahih by Shu'ayb al-Arna'ut). Sahih al-Bukhari records the occasion when he stayed the night in the house of his aunt Maymuna (ra) to watch the Prophet's night prayer, and stood by his side (Book of Knowledge). He became known as the interpreter of the Qur'an of the community, as the later scholars called him.
Anas ibn Malik (ra). His mother Umm Sulaym (ra) brought him to the Prophet (saw) at the age of about ten to serve him, and he served him for ten years. The Prophet (saw) is reported to have prayed that Allah increase his wealth and children and bless it (Sahih al-Bukhari, Sahih Muslim). Anas (ra) said that in ten years the Prophet (saw) never said 'uff' to him or asked why he had done a thing (Sahih al-Bukhari, Sahih Muslim). He is one of the greatest narrators of hadith.
Children at Badr, Uhud and the Trench
The two young Ansari brothers Mu'adh ibn 'Amr ibn al-Jamuh and Mu'adh ibn 'Afra' (ra) are mentioned in Sahih al-Bukhari and Sahih Muslim in the account of Badr. 'Abd al-Rahman ibn 'Awf (ra) said that he was standing in the rank when two young boys beside him asked him which man was Abu Jahl. They said that they had heard that he insulted the Prophet (saw), and they had vowed to kill him or die. They struck him down before others reached him (Sahih al-Bukhari, Book of the Obligation of the Fifth).
'Umayr ibn Abi Waqqas (ra), the younger brother of Sa'd (ra), was a boy of about sixteen. According to Ibn Sa'd, he hid in the ranks so as not to be sent back, and then cried when the Prophet (saw) tried to send him away, so the Prophet (saw) allowed him to fight, and he was martyred at Badr. This report is in the biographical works, and its chain is not of the same grade as the hadith in Bukhari. 'Abdullah ibn 'Umar (ra) said that he was presented to the Prophet (saw) at Uhud at fourteen and was not allowed, and was presented again at the Trench at fifteen and was accepted (Sahih al-Bukhari, Sahih Muslim). The report is the basis on which the scholars discussed the age of adulthood, and 'Umar ibn 'Abd al-'Aziz is reported to have fixed fifteen for the register of fighters.
The boy and the king
One of the best known accounts of a child's steadfastness is the hadith of the boy and the king, narrated by Suhayb (ra) in Sahih Muslim (Book of Zuhd). A boy studied with a monk, and by the permission of Allah he healed the blind and the leper. The king demanded that he abandon his faith, and the boy refused. The king ordered him to be killed, and the boy told the king that he could do so only if he said 'in the name of the Lord of the boy' and shot an arrow. The people were moved and believed. The Prophet (saw) related this as a lesson in patience, and many of the commentators connect it to the verses of the People of the Trench (85:4 to 8). It shows a young person whose courage led a whole town to faith, though the details are those of an earlier community and are not given as history in the same way as the sira.
Children among later scholars
The biographers report that Muhammad ibn Idris al-Shafi'i (d. 204 AH) memorised the Qur'an at the age of seven and the Muwatta' of Malik at ten, and was permitted to give legal opinions at a young age. Al-Dhahabi in Siyar A'lam al-Nubala' reports these accounts and the scholars take them as generally accepted, though some details are given on single chains. Muhammad ibn Isma'il al-Bukhari (d. 256 AH) is reported to have begun learning hadith before the age of ten, and to have begun writing his first works as a youth, as al-Khatib al-Baghdadi relates in Tarikh Baghdad. Imam al-Nawawi (d. 676 AH) is reported by his biographer Ibn al-'Attar to have been forced by other children to play, and to have wept and recited the Qur'an instead, and to have memorised it near the age of puberty. The story is told by later writers and its source is the biography written by his student.
The great physician Ibn Sina (d. 428 AH) wrote in his autobiography, as preserved by his student al-Juzajani, that he had memorised the Qur'an by ten. These examples should not make a child feel pressured. They are meant to show what is possible with Allah's help and a supportive home, and the Prophet (saw) taught that every child has a right to gentleness, as he kissed his grandchildren al-Hasan and al-Husayn (Sahih al-Bukhari, Sahih Muslim).
What these examples teach
Several lessons appear. First, the Prophet (saw) took children seriously, by speaking to them, praying for them and giving them tasks, as when he asked a boy, Ibn 'Abbas (ra), to follow him on the same mount and taught him: 'Be mindful of Allah and He will protect you' (Jami' al-Tirmidhi, graded hasan sahih). Second, a good teacher and a close family are central, as in the cases of Umm Sulaym, Asma' and Zayd. Third, faith in childhood is not a matter of age, and fourth, courage is balanced by wisdom, and the Prophet (saw) did not allow young boys to fight until they were old enough.
Conclusion
The children of Islamic history, from Ali, Zayd, Ibn 'Abbas and Anas (ra) to al-Shafi'i and al-Bukhari, show that childhood can be a time of knowledge, devotion and bravery. Readers should rely first on the Qur'an and sound hadith, and treat biographical stories with the care that scholars apply to them.
The best way to take inspiration is to follow what they did, learning the Qur'an, serving the elders, asking questions and showing patience, and to pray as the Qur'an teaches: 'My Lord, increase me in knowledge' (20:114).
References
The Qur'an: 18:80, 19:12, 20:114, 85:4 to 8
Sahih al-Bukhari and Sahih Muslim: Badr (the two boys); Ibn 'Umar at Uhud and the Trench; Anas; the boy and the king (Muslim, Zuhd)
Jami' al-Tirmidhi; Musnad Ahmad: Zayd ibn Thabit; Ibn 'Abbas
Ibn Sa'd, al-Tabaqat al-Kubra; Ibn Hisham, al-Sira al-Nabawiyya
al-Dhahabi, Siyar A'lam al-Nubala'; al-Khatib al-Baghdadi, Tarikh Baghdad
Ibn al-'Attar, Tuhfat al-Talibin (on al-Nawawi)