Mishkat al-Masabih 59
وَعَنْ أَنَسِ بْنِ مَالِكٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسلم: «ثَلَاث من أَصْلِ الْإِيمَانِ الْكَفُّ عَمَّنْ قَالَ لَا إِلَهَ إِلَّا الله وَلَا نكفره بذنب وَلَا نخرجهُ من الْإِسْلَام بِعَمَل وَالْجِهَادُ مَاضٍ مُنْذُ بَعَثَنِي اللَّهُ إِلَى أَنْ يُقَاتل آخر أمتِي الدَّجَّالَ لَا يُبْطِلُهُ جَوْرُ جَائِرٍ وَلَا عَدْلُ عَادل وَالْإِيمَان بالأقدار» . رَوَاهُ أَبُو دَاوُد
From Anas ibn Malik, who said: The Messenger of Allah ﷺ said: "Three things are from the root of iman: refraining from whoever says 'There is no god but Allah': we do not declare him a disbeliever for a sin, nor expel him from Islam for a deed; and jihad continues from when Allah sent me until the last of my nation fights the Dajjal; the injustice of an unjust [ruler] does not cancel it, nor the justice of a just one; and belief in the decrees." Reported by Abu Dawud.