According to Hikayat Raja-raja Pasai, he met the Islamic prophet Muhammad in dream thus accepts conversion of Islam.
According to the story in Hikayat Raja-raja Pasai, he dreamed about Muhammad and accepted Islam as his religion.