Basically, the more you adhere to God commands and prevent yourself from doing what you are forbidden per Islam to do, the more you be better Muslim and the more you get closer to God.
Quran says (English meaning translation): "Say (O Muhammad SAW to mankind): 'If you (really) love Allah then follow me (i.e. accept Islamic Monotheism, follow the Quran and the Sunnah), Allah will love you and forgive you of your sins. And Allah is Oft-Forgiving, Most Merciful.' (31)" [Quran, chapter 3, verse 31].
Believe in and follow the following principles:
See related questions below for more information.
Chat with our AI personalities