*The answer to this question yes it was a a khilafah, the problem was that some of the rules were misintrepeted.
Here is reply to a question asked by many people*
*The Khilafah system was implemented continuously throughout the history of Islam *
Due to the current situation of the Muslims, it is natural that the Ummah is looking for a solution to its problems and dedicates its resources in order to alleviate itself from the catastrophes that are confronting it. In its efforts to solve its problems, it is also natural that the Muslims would realise that Islam is the only solution because it is deeply rooted in the minds of Muslims and embodies our history, language, culture, and sentiments. As a result of such a realisation, the Muslims would naturally work to bring Islam back into existence.
Today, more Muslims are beginning to return to their Islamic roots, and we are exerting a tremendous amount of energy and resources in order to change its situation. In the attempts to create a revival, those movements who are working to re-establish the Khilafah, have faced questions and obstacles, such as whether the Khilafah State existed, and was Islam ever implemented throughout its history?
*The root behind this questioning *
As a consequence of the cultural and political invasion of the West on the Muslims - which heavily concentrated on destroying concepts related to bringing Islam as a system - many ideas related to the method of Islam became weak, or completely misunderstood.
There were some who were infatuated with the West, and smitten by their ideals, who denied the Khilafah state existed. The West ensured that the Muslims, by their own initiative, would refuse central concepts such as the Islamic political system, to the degree that when the Khilafah's death certificate was signed in 1924, a scholar and Azhar graduate named Ali Abdul Raziq, plagiarised a French book and immediately issued it claiming that Muhammad (saw) never acted as ruler, imam, judge, or political leader, and that the Khilafah was not a part of Islam at all. He also claimed that the Muslims would convene and choose any political system to take care of their worldly affairs, but emphasised that Islam is exclusively for the individual and such a political system would not constitute a part of Islam. After issuing the book, Al Azhar issued a fatwa calling for the destruction of his certificate and claiming that he had left the fold of Islam. In spite of Azhar's response, that book was published immediately after the death of the Khilafah, leading one to conclude that the publishing of such a book was precisely timed to coincide with the destruction of Khilafah.
Today, Farish A Noor, a Malaysian political scientist and human rights activist said in an article dubiously entitled, Restoration of the Muslim Caliphate remains a Pipe-Dream, “Those Muslims who tried to revive the institution of the Caliphate…. were merely holding on to a fantasy that was a comfortable panacea for the painful realities of their daily lives.”
Another cause for the questioning of the ruling system of Islam is sinister too. There are those who are clambering to keep the Kufr systems, by passing fatawa which are contradictory to Islam, and which deny the existence of the Khilafah state in history as the Islamic political system, due to the fact that they wish to please their masters from amongst the corrupted rulers.
Furthermore there are those who are defeated by pessimism who constantly see darkness and despair, and are afraid to go out of their houses. Moreover there are those who have simply misunderstood the reality of history, and the events of the past, and state that Islam had its period, for a very short period only.
The West exerted a tremendous effort to alienate the Muslims from Islam, employing several tactics in order to achieve this aim. Among their many manoeuvres, they succeeded, through the Orientalists, in constructing a picture of the Islamic history as a grim era full of oppression and tyranny. As a result, many Muslims use such a scenario to counterattack any movement seeking to re-establish Islam in the realm of life. In order to legitimise their arguments, they present two particular points. They bring the example of the Umayyads and Abbasids and claim that their rule was that of a monarchy; and they cite stories of problems and incidents that occurred in history, exaggerate them in scope, and use them to justify their claim that Islam was not implemented. Examining the validity of such claims requires a more thorough and exhaustive study of the history.
*The Khilafah State is well defined *
The Khilafah state is well defined, and scholars in the past and present have presented the Khilafah structure in detail. It is beyond the scope of this article, to discuss the details, but the book issued by Hizb ut-Tahrir called “The Ruling System in Islam”, clearly illustrates the details of the ruling system, showing the basis of the Khilafah State, and revealing its pillars in an eloquent manner.
*The argument that the Khilafah lasted for 30 years *
There are some who have misunderstood the divine texts, and claim that the Khilafah lasted for 30 years. They base their understanding, by taking in an isolated manner an honourable hadith, which was narrated in the Musnad of Imam Ahmad, which states that the Prophet (saw) said, “The Khilafah in my Ummah after me will be for thirty years. Then there will be Mulk after that.” Some people translate the word mulk as Kingship.
To deal with this understanding we need to look to the hadith, and what it is addressing, and we need to look to this honourable hadith in context with other hadith. The 30 years that are mentioned is related to the period of the Khulafah Rashidah. So if we look to the period of the Khulafah Rashidah and look to the sum of the first five Khulafah it comes to exactly thirty years: two years and three months for Abu Bakr (ra), ten and a half years for Umar (ra), twelve years for Uthman (ra), four years and nine months for Ali (ra), and six months for al-Hasan (ra). The hadith then mentions that there will be mulk afterwards. If we look to this word, “mulk”, it has many meanings. Just by glancing at the famous Arabic dictionaries, like "Al- Muhit" of Fairuz Al-Abadi, it clearly illustrates this. The word mulk amongst other things does mean kingship, but also it means the one having charge over all the people, and also the word “hukm” (rule), is synonymous with the word sultan (authority), and mulk (dominion/rule).
Those who refer to this hadith claim the Umayyads and later generations were monarchies because even the hadith mentions the word Mulkan, which is derived from Malik, or ruler. Such an argument is built upon a false interpretation because the word Mulk as stated above means "dominion/rule/authority" and the word Malik can either mean "a ruler" in any context or "a ruler within a monarchical system." Thus, rulership does not immediately connote kingship or monarchy but can mean the rulership in any system. Allah (swt) mentions in the Qur'an the word Mulk, in the context of rule, amongst other ayat:
“By Allah's will they routed them; and Dawud slew Goliath; and Allah gave him dominion [Mulk] and wisdom and taught him whatever (else) He willed. And were it not for Allah's repelling some men with others, the earth would certainly be in a state of disorder; but Allah is Gracious to the creatures” [TMQ Al-Baqarah: 251].
Nobody can claim that Dawud (as) was a king because he would have to declare himself sovereign, an impossible act for a Prophet. In this context, Dawud (as) was given the authority to implement the revelation he received from Allah (swt), in the same manner that the Khalifah has the authority to rule only by Islam.
Also if we look to other hadith, they mention that there will be 12 Imams, which is a Shari’ah term to mean Khulafah, which can indicate that there were 12 Khulafah in the first three generations. As narrated by Jabir ibn Samurah (ra) that Muhammad (saw) said “The Islamic deen will continue until the Hour has been established, or you have been ruled by twelve Khulafah, all of them being from the Quraish” [Sahih Muslim].
In another hadith, amongst many others, the Prophet (saw) has indicated that their will be many Khulafah, It has been reported on the authority of Abu Hazim that he said: “I accompanied Abu Hurairah for five years, and heard him informing about the Prophet (saw), he said: ‘The Prophets ruled over the children of Israel, whenever a Prophet died another Prophet succeeded him, but there will be no Prophet after me. There will soon be Khulafa’a and they will number many.’ They asked; ‘What then do you order us?’ He (saw) said; ‘Fulfil the Bay’ah to them, one after the other and give them their dues for Allah will verily account them about what he entrusted them with’ [Sahih Muslim].
Also the example of the Sahabah, Tabieen, and Tabi-Tabieen, and the great Mujtahideen amongst them, is clear that they recognised Khulafah after Hasan (ra) and gave bay’ah to them freely, such as Khalifah Muawiya, Khalifah Abdullah ibn Zubayr (ra), and Khalifah Umar ibn Abdul Aziz (ra), and even those much later on such Khalifah Abdul Hamid II amongst many others.