[Surah Al-Qalam 68:4]
He is known as Mabloos ilasakhlain (Chosen for two heavy creations)
Prophet Mohammed ﷺ is the Prophet for human-kind as well as Jinns.
There are two places where Qur’an mentions communication between the Prophet ﷺ and the Jinns.
In Surah al-Jinn, Allah reveals that the Jinn, too, listened to the communications of the Prophet Muhammad ﷺ and the Qur'an, and that some of them accepted Deen and became Muslims. One verse on the subject reads:
Say: "It has been revealed to me that a band of the jinn listened and said, 'We have heard a most amazing Recitation. It leads to right guidance so we believe in it and will not associate anyone with our Lord.'"Surah al-Jinn: 1-2
In that same Surah, Allah also reveals that some Jinn are actually Muslims:
[The Jinn said]: "And when we heard the guidance, we believed in it. Anyone who believes in his Lord need fear neither belittlement nor tyranny. Some of us are Muslims and some are deviators. Those who have become Muslim are those who sought right guidance."Surah al-Jinn: 13-14
When the servant of Allah stands calling on Him, they almost swarm all over him.Surah al-Jinn: 19
Yet another verse recounts that when the Prophet ﷺ gave guidance regarding Deen, the jinn would gather around him and listen carefully:
And [mention, O Muhammad], when We directed to you a few of the jinn, listening to the Qur'an. And when they attended it, they said, "Listen quietly." And when it was concluded, they went back to their people as warners.Surah Ah’kaf- 29
These verses make it clear that Prophet Muhammad ﷺ was sent as a Prophet for all mankind and the jinn. The Qur'an is a guide for both mankind and the Jinn.
When the Jinns invited the Prophet ﷺ to their colony
Once the Prophet ﷺ visited Taif to invite the people to Islam. He wanted to talk to the people of the town to invite them to Islam but they all shut their doors on his face and rejected him. Zaid bin Haris (May Allah be pleased with him) was his Companion. Both of them went to their leader, who rejected them as well. He asked his slaves and young boys to drive them away.. They threw stones at them to drive them out of the town. Both of them were injured. Our Prophet ﷺ bled so much that his shoes were filled with his blood and got stuck to his feet. The Prophet ﷺ felt dizzy .
Zaid (May Allah be pleased with him) said, “I helped the Prophet ﷺ to leave the village and we rested under a tree.” Both men then returned to Makkah. On the way, at Watane Nakhla, Prophet ﷺ woke up to offer Tahajjud and recited the Qur’an.
The Jinns of that time had noticed that they could not cross over the heavens and hear the conversations of the angels anymore, rather they were chased by meteors and were driven away. Their leader instructed them to find out the reason so they wandered around. There was a valley called Nasibi which was inhibited by Jinns. These Jinns passed by the place at night when they heard the recitation. The group heard the melodious recitation of our Prophet ﷺ and were entranced. Without the knowledge of our Prophet ﷺ that group of Jinn accepted Islam. It was then the above verses of Surah Jinn were revealed. The point to be noted is that the humans of Taif rejected the Message of Allah but the Jinn accepted it. Allah truly does not let the efforts of the Believers go in vain.
Once the Prophet ﷺ was sitting with his Companions. He had to go to attend the call of nature. He went a bit farther and did not return for a long time. The Companions were worried about his absence and feared that he had been abducted. They searched for him the whole night. In the morning, the Prophet ﷺ returned. When the Companions inquired, he replied, “I was called by a group of Jinns over that mountain, who had embraced Islam and wanted to learn the religion from me. It took me the whole night to teach them”. This night is called “Laylatul Jinn”. The Companions then went along him to the place and saw burnt sticks and ash which indicated that food was cooked that night. Therefore, it is essential to believe that the Prophet ﷺ was sent even to the Jinn.