In surah Ar-roem, ayat 32 one can read the following:
Don't be part of those who have divided their religion and become sects, every faction rejoicing in what it has
So why are there groups in islam, like sunni, shi'a, kharijte, sufi, ahmadija and so on since this ayat clearly shows we can't divide our religion into subdivisions?