If you see yourself as a Muslim in your dream, it signifies a change in your life. Expressing gratitude to Allah and praying towards the Kaaba indicates a new perspective on your life. This symbolizes self-reflection and learning from past mistakes. If you feel drawn to Islam, it points to your quest for inner peace and a desire to walk the right path.
From Imam Muhammad Ibn Seerin's Dictionary of Dreams According to Islamic Inner Traditions â entry "Islam" (page 228).
To see oneself as a Muslim, praising God Almighty, thanking Him, facing the Ka'aba in one's prayers, or to see oneself embracing Islam in a dream means straightening one's life, or repentance from one's sins. If one sees himself renewing his Islam in a dream, it means safety from plagues, sickness, or adversities. To proclaim the two testimonies: ''There is no god other than Allah, Muhammad is the Messenger ofAlliih," in one's dream means relief from distress, or guidance after heedlessness. Saying these testimonies in a dream also may mean returning to one's parents after having abandoned them. It also means returning to a place one has earlier deserted, or to using earlier criterions in one's life. If a Muslim recites these proclamations in a dream, it means that he will testify to the truth in a court of justice, or become known for his truthfulness. (Also see Exalting God's one ness; Exclamation of God's sovereignty; Imam; Meadow; mosque; Qur'an; Pil grimage)
Note: Islamic dream interpretation depends on the dreamer's circumstances and state. This is a general guide drawn directly from the source book.