Clarification of the Doubt
The Shia say that this hadith (I am the city of knowledge and Ali is its gate) proves that the only source of the knowledge of the Messenger of Allah ﷺ is Sayyiduna Ali ibn Abi Talib (may Allah be pleased with him), and that Sayyiduna Ali is more knowledgeable than all the Companions and is the best of them all.
They also say that this hadith proves the Imamate and caliphate of Sayyiduna Ali ibn Abi Talib (may Allah be pleased with him). As though in this hadith the Prophet ﷺ presented Sayyiduna Ali (may Allah be pleased with him) as the true heir of his knowledge. Sayyiduna Ali is the heir of all the outward and inward knowledge of the Prophet ﷺ.
They also say that the Imams of the Ahl al-Bayt possess innate knowledge (ilm laduni), meaning that their knowledge continues to flow through the grace of revelation. Rather, the Shia use this hadith to prove their principle of the Imamate: that only the one who is the Prophet’s successor in knowledge, spirituality and morals can be the true Imam and leader.
Reply to the Doubt
First point
Among us this hadith is on everyone’s lips, common among the elite and the masses. This hadith is narrated in
from Jabir ibn Abdullah (may Allah be pleased with him), and in
from Abdullah ibn Umar, and it is also narrated in Mustadrak al-Hakim from Sayyiduna Ali (may Allah be pleased with him).
In Jami’ al-Tirmidhi its wording is (( أنا دارالحکمۃ… )) “I am the house of wisdom…”
.
Second point
Sayyiduna Ali ibn Abi Talib (may Allah be pleased with him) is a Companion of the Messenger, one of the righteous servants of Allah, and the fourth of the rightly-guided caliphs. No one denies his virtue and standing; rather, his virtues established by authentic hadiths are so many that there is no need to turn to weak and fabricated hadiths. Only a believer loves Sayyiduna Ali (may Allah be pleased with him), and only a hypocrite hates him. But it is not permissible to exaggerate about him or about any other friend (wali) of Allah.
Third point
This hadith is narrated through various routes, but with all its chains it does not reach the level of authenticity. Several scholars have stated this explicitly; indeed, a number of them have declared it mawdu’ (fabricated).
Imam Ibn al-Jawzi (may Allah have mercy on him) discussed all the routes of this narration at great length, spanning about six pages. He declared it baseless both rationally and textually. He said: This hadith is not established through any route
.
Consider the statements of some hadith scholars:
◈ Imam al-Tirmidhi said about this hadith: “gharib, munkar”
.
◈ Imam al-Tirmidhi relates: “I asked (Imam) Muhammad ibn Isma’il al-Bukhari about this hadith narrated through the chain of Ali (may Allah be pleased with him), that the Messenger of Allah ﷺ said: ‘I am the house of wisdom and Ali is its gate.’ Imam al-Bukhari did not recognise this hadith (that is, it was not known to him), and declared it munkar (rejected and doubtful).”
Then Imam al-Tirmidhi himself comments: None of the reliable students of Sharik narrated this hadith, and we do not know this hadith in the narration of Salamah ibn Kuhayl from anyone other than Sharik
.
◈ Imam al-‘Uqayli (may Allah have mercy on him) said: No hadith with this text is sahih (authentic)
.
◈ Ibn al-Qaysarani (may Allah have mercy on him) said:
This hadith is among those that Abu al-Salt al-Harawi fabricated, and liars have followed in his footsteps
.
◈ Imam al-Daraqutni declared the narration from Sayyiduna Ali to be mudtarib (inconsistent)
.
◈ Abu Bakr Ibn al-‘Arabi (may Allah have mercy on him) said:
This is a false hadith. The Prophet ﷺ is the city of knowledge and its gates are his Companions; some of them are a wide gate, and some are of medium size, according to their ranks in their knowledge
.
◈ Ibn al-Jawzi (may Allah have mercy on him) spoke at length on the hadith of Ali, the hadith of Ibn Abbas and the hadith of Jabir, gathered all the routes, and gave this verdict: “والْحَدِيث لَا أصل لَهُ” it has no basis
.
◈ Imam al-Dhahabi said: This hadith (I am the city of knowledge and Ali is its gate) is the weakest of narrations. Despite al-Tirmidhi’s narration of it, it has been counted among the fabricated hadiths
.
◈ Allamah al-Albani discussed all its routes and declared it mawdu’ (fabricated)
.
◈ Shaykh al-Islam Ibn Taymiyyah (may Allah have mercy on him) said: As for the hadith (I am the city of knowledge), it is very weak and feeble, which is why it is counted among the fabricated and false hadiths, even though al-Tirmidhi narrated it. That is why Ibn al-Jawzi mentioned it in the mawdu’at (fabricated hadiths) and made clear that this hadith is fabricated through all its routes. The falsehood is recognised from its text alone; there is no need to look at its chain of narration. For if the Prophet ﷺ were the city of knowledge and it had only one door, this is a matter that would be conveyed not by a single person but by many narrators through mass transmission, by whose report knowledge reaches the one who is absent. The narration of one person does not give knowledge except together with supporting indications, and those indications are either absent, or hidden from a great number of people or from most of them; so they would not attain knowledge of the Qur’an and the mutawatir Sunnah; unlike mutawatir transmission, by which knowledge is attained by the elite and the common people alike. This hadith was fabricated by some heretic (zindiq) or ignorant person who took it to be praise; whereas it is the way of the heretics to attack the knowledge of the religion, if the one conveying the religion from the Noble Prophet ﷺ were only a single Companion. Moreover, it contradicts what is known by mass transmission; because in all the cities of the Muslims, the knowledge of the Messenger ﷺ reached them through Companions other than Ali.
Some scholars have declared it sahih (authentic) or hasan (good), but this opinion of theirs is not correct; rather, according to the early scholars and the majority of contemporary scholars, this hadith is not established.
The Fourth Point
This hadith conflicts with other sahih hadiths. Indeed, if the understanding taken from it is that Ali alone is the sole door to the knowledge of the Prophet, it would mean that the thousands of hadiths narrated from the other Companions, their juristic opinions, and their transmission of the religion become unreliable. This is not only contrary to reason and transmission, but it affects the entire scholarly and religious structure of Islam.
The Fifth Point
The knowledge of the Noble Prophet ﷺ reached all the major cities of Islam not only through Ali (may Allah be pleased with him), but through other eminent Companions (may Allah be pleased with them). The people of Madinah and Makkah received the teaching of the religion from Abu Bakr, Umar, Ibn Abbas and Aishah (may Allah be pleased with them). Among the people of Sham and Basrah, very little was narrated from Ali (may Allah be pleased with him); there, Companions such as Mu’adh ibn Jabal, Abu al-Darda and Ibn Umar (may Allah be pleased with them) were the major sources of knowledge. Even the people of Kufa, where the scholarly influence of Ali (may Allah be pleased with him) was most prominent, had already learned the Qur’an and Sunnah before the caliphate of Uthman (may Allah be pleased with him). The major jurists of Madinah learned the religion in the era of Umar (may Allah be pleased with him), and not only from Ali (may Allah be pleased with him). Therefore, to restrict the knowledge of the Prophet to Ali (may Allah be pleased with him) alone is not correct rationally, nor in terms of transmission, nor historically.
The Sixth Point
Even if this were accepted as correct, special virtues of the same kind are narrated about a number of Companions. As an example, consider one hadith:
Anas ibn Malik (may Allah be pleased with him) said that the Messenger of Allah ﷺ said: “The most merciful of my Ummah towards my Ummah is Abu Bakr, the most severe of them in the matter of Allah is Umar, the most truly modest of them is Uthman, the best reciter of the Book of Allah is Ubayy ibn Ka’b, the most knowledgeable of them in the laws of inheritance is Zayd ibn Thabit, the most knowledgeable of them in the lawful and the unlawful is Mu’adh ibn Jabal. Listen, every Ummah has a trustworthy one, and the trustworthy one of this Ummah is Abu Ubaydah ibn al-Jarrah.”
Imam al-Tirmidhi said: This hadith is hasan sahih (good and authentic). And Allamah al-Albani declared its chain of narration sahih.
The Seventh Point
Even if they accept this hadith as sahih, Ahl al-Sunnah restrict it to virtue in knowledge only; they do not take it as evidence for political leadership or imamate.
On the question of infallibility and the caliphate, this narration is not even explicit; therefore, to declare knowledge to necessitate infallibility, and then to connect imamate and the caliphate to it, is arbitrary, self-made reasoning; there is nothing of the kind in the hadith.
The Eighth Point
The Companions considered Abu Bakr (may Allah be pleased with him) to be the most knowledgeable without qualification. Thus it is in Sahih al-Bukhari: while narrating a hadith, Abu Sa’id (may Allah be pleased with him) described Abu Bakr (may Allah be pleased with him) as the most knowledgeable.
Then, that he was also the one entitled to the caliphate has many indications and proofs in the hadiths. For example: the Noble Prophet ﷺ appointing him to lead the prayer near the end of his life
makes clear his position and rank among the Ummah.
Umar ibn al-Khattab (may Allah be pleased with him) said that Abu Bakr is our leader and the best of us, and he was the most beloved of us to the Messenger of Allah ﷺ.
.
When the Noble Prophet ﷺ took counsel, he would give precedence to Abu Bakr and Umar (may Allah be pleased with them both). It was these two who would speak before him ﷺ in the presence of all the other Companions (may Allah be pleased with them). In one hadith it is said: ’’اقتدوا باللذين من بعدي، أبي بكرٍ وعمرَ‘‘ “Follow Abu Bakr and Umar after me”
.
Likewise, Abdullah ibn Umar (may Allah be pleased with them both) narrates that I heard the Messenger of Allah ﷺ say: “In a dream, a cup of milk was brought to me. I drank some of the milk until its satisfaction was dripping from my nails. I gave the rest of my milk to Umar (may Allah be pleased with him).” The Companions (may Allah be pleased with them) asked: What is its interpretation? He said: “Its interpretation is knowledge.”
.
The Final Point
On numerous occasions Sayyiduna Ali was not with the Messenger ﷺ. For example:
◄ When he ﷺ was in his home.
◄ On the occasion of the expedition to Tabuk.
◄ At the beginning of the Hajj journey.
◄ When Sayyiduna Ali (may Allah be pleased with him) performed Hajj with Abu Bakr (may Allah be pleased with him) in 9 AH.
◄ The journey to Ta’if.
On these and many other occasions Sayyiduna Ali (may Allah be pleased with him) was not with the Messenger ﷺ, yet those teachings and details have reached us.
Summary of the Discussion
The aforementioned hadith does not reach the level of established proof in terms of its chain of narration, so it is not correct, on its basis, to declare Sayyiduna Ali infallible, an imam, the first person with a right to the caliphate, or the sole path to the knowledge of revelation.