One becomes a Muslim by believing in the Two Testifications of Faith and uttering them with the intention of leaving out blasphemy.
What are the Two Testifications of Faith?
The Two Testifications of Faith are:
I bear witness that no one deserves to be worshiped except Allah
I bear witness that Muhammad is the Messenger of Allah
أشهدُ أنْ لا إلهَ إلاَّ اللهُ
وأشهدُ أنَّ محمّداً رسولُ الله
(ASHHADU ALLA ILAHA ILLALLAH, WA ASHHADU ANNA MUHAMMADAR-RASULULLAH)
The non-Muslim embraces Islam by believing in the Two Testifications of Faith and uttering them with the intention of leaving out blasphemy.
The first Testification means that no one or thing deserves to be worshipped except God Who is the Creator of everything.
The second Testification states that Muhammad the son of Abdillah who was born in Makkah about 1400 years ago is a messenger of God. He was sent to convey what God revealed to him so that the humans believe in and work with the Laws he received and brought. He is truthful in all what he conveyed.
The Two Testifications reject the Godhood of anyone or anything other than God. They confirm the Godhood of God only with the acknowledgment of the message of prophet Muhammad.