The first inception of the khawaarij ideology stems from a hadeeth narration that took place between a man named Dhul-Quwayara and Prophet Muhammad (alaihi salatu wa salam).
Imaam `Ali ibn Abi Taalib sent a piece of gold not yet taken out of its’ ore, in a tanned leather container to the Messenger of Allah. The Messenger of Allah distributed that amongst four persons, `Uyaina bidn Bar, Aqra bin Habi, Zaid al-Khail and the fourth was either `Alqama or `Amir ibn at-Tufail. On that, one of his companions said, ‘We are more deserving of this gold than these people are.’ When that news reached the Prophet SAW he said, ‘Don’t you trust me though I am the trustworthy man of the One above the sky and I receive the news of Heaven both in the morning and in the evening?’
Then there arose a man with sunken eyes, raised cheek bones, raised forehead, a thick beard, a shaven head and an izaar (waist sheet) that was tucked up, and he said, ‘O Messenger of Allah! Fear Allah!’ The Messenger of Allah said, ‘Woe be to you! Am I not of all the people of the Earth the most entitled to fear Allah? Then the man went away. Khaalid ibn al-Walid said, ‘O Messenger of Allah! Allow me to kill him.’ The Prophet SAW said, ‘No, for he may offer prayers.’ Khaalid said, ‘There are many of those who offer prayers and say by their tongues what is not present in their hearts.’
The Messenger of Allah SAW said, ‘I have not been ordered by Allah to search the hearts of the people or to cut open their bellies.’ Then the Prophet looked at him while the man was going away and said, ‘From the offspring of this man will come a people who will recite the Qur’an continuously and beautifully but it will not go past their throats. Then they will exit from the religion just as the arrow exits the body of the game. ’ If I should be present in their time, I would kill them just as the nation of Thamud were killed.’ [1]



