Allaah tells us that some of the jinn said (interpretation of the meaning):
" 'And some of us are Muslims, and of us some are al-qaasitoon (disbelievers - those who have deviated from the Right Path). And whosoever has embraced Islam, then such have sought the Right Path. And as for the qaasitoon, they shall be firewood for Hell.'" [al-Jinn 72:14-15]
The Muslims among the jinn are of different levels as regards righteousness and taqwa. Allaah says (interpretation of the meaning):
"[Some jinn said:] 'There are among us some that are righteous, and some the contrary; we are groups, each having a different way (religious sects, etc.)'" [al-Jinn 72:11]
The story of how the first jinns of this ummah became Muslims was narrated by 'Abd-Allaah ibn 'Abbaas, who said: "The Prophet (peace and blessings of Allaah be upon him) went out with a group of his Companions heading for the marketplace of 'Ukaaz. This was when the shayaateen were prevented from getting any news from heaven, and shooting stars had been sent against them. The shayaateen went back to their people, who said, 'What is the matter with you?' They said, 'We cannot get news from heaven, and shooting stars were sent against us.' Their people said, 'Nothing is stopping you from hearing news from heaven except some new event that must have happened. Go and look in the east and the west of the earth, and see if you can find out what it is that is stopping you from hearing news from heaven.' Those who went out in the direction of Tihaamah came upon the Prophet (peace and blessings of Allaah be upon him) in Nakhlah, when he was on his way to 'Ukaaz, and found him leading his Companions in Fajr prayer. When they heard the Qur'aan, they listened to it and said, 'By Allaah, this is what is stopping us from hearing news from heaven.' When they went back to their people, they said, 'O our people, we have heard a wonderful Recital (the Qur'aan). It guides to the Right Path, and we have believed therein, and we shall never join (in worship) anything with our Lord (Allaah). [al-Jinn 72:2 - interpretation of the meaning]. Then Allaah revealed to His Prophet peace and blessings of Allaah be upon him) the words (interpretation of the meaning): "Say (O Muhammad): 'It has been revealed to me that a group of jinns listened (to this Qur'aan)...' [al-Jinn 72:1], and Allaah revealed to him what the jinn had said." (reported by al-Bukhaari, 731).