Alqama says that once I asked Sayyiduna Ibn Mas'ud (may Allah be pleased with him), "Was there anyone among you who was with the Prophet (peace and blessings be upon him) on the occasion of Laylat al-Jinn?" He replied, "No, none of us was with him. Rather, one night we found the Prophet (peace and blessings be upon him) missing. We became worried that perhaps someone had deceived the Prophet (peace and blessings be upon him) and taken him somewhere. We were anxious, wondering what had happened. We spent the entire night—which could be extremely distressing for any people—in this state. When the morning appeared, the Prophet (peace and blessings be upon him) was seen coming towards us from the direction of the Cave of Hira. We mentioned to the Prophet (peace and blessings be upon him) our worry and anxiety, so the Prophet (peace and blessings be upon him) said, 'A jinn from among the jinn came to me with an invitation, so I went with them and recited the Noble Qur'an to them.' Then the Prophet (peace and blessings be upon him) took us along and showed us their traces and the traces of their fires." (Imam Sha'bi, may Allah have mercy on him, says that they had requested provisions from the Prophet [peace and blessings be upon him], and they were jinn from the Arabian Peninsula.) The Prophet (peace and blessings be upon him) said to them, "Every bone upon which Allah's name has been mentioned will come into your hands with more meat on it than it had before, and every piece of dung or droppings is fodder for your animals." (Then he said:) "Do not use these two for istinja (cleaning), because these are the food of your jinn brothers."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 4149