I have recently made a statement that I think might have taken me out of Islam.
I was confused with the differing views in Islam (Sunni, Shia, Sufis, Quranist, etc) that I thought was similar to divisions in other religions such as Christianity. When someone then asked me if I am a Muslim, I replied that I did not know whether I was a Muslim and preferred to live and worship God without being attached to any particular religion.
I have made a grave mistake and I do not want to loose my faith.
My question is how I can repent (what I need to do) so Allah will accept my repentance.
Please help me.