Surah Al-Baqarah, ayah 137

2:137

فَإِنۡ ءَامَنُواْ بِمِثۡلِ مَآ ءَامَنتُم بِهِۦ فَقَدِ ٱهۡتَدَواْۖ وَّإِن تَوَلَّوۡاْ فَإِنَّمَا هُمۡ فِي شِقَاقٖۖ فَسَيَكۡفِيكَهُمُ ٱللَّهُۚ وَهُوَ ٱلسَّمِيعُ ٱلۡعَلِيمُ ١٣٧

Fa in āmanū bimithli mā āmantum bihī faqadihtadaw wwa in tawallaw fa innamā hum fī shiqāqin fasayakfīkahumullāhu wahuwas-samī'ul-'alīm

So if they believe in the same as you believe in, then they have been [rightly] guided; but if they turn away, they are only in dissension, and Allāh will be sufficient for you against them. And He is the Hearing, the Knowing.