It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Three things are part of the foundation of Islam: First, that one refrains (from raising tongue or hand) against whoever says 'La ilaha illallah (there is none worthy of worship except Allah)'; he is not declared a disbeliever because of any sin, nor expelled from Islam because of any deed. Second, that jihad has continued since Allah, the Mighty and Majestic, sent me, until the last group of my Ummah fights the Dajjal; neither the oppression of an oppressor nor the justice of a just one will stop it. And third, belief in all the divine decrees."
Imam Abu Dawud (may Allah have mercy on him) narrated it through Sa'id bin Mansur (may Allah have mercy on him), by way of Abu Mu'awiyah, Ja'far bin Burqan and Yazid bin Abi Nushbah, from Sayyiduna Anas (may Allah be pleased with him).
Related hadith on this topic