Hadithcore
Sahih Muslim, 450 a
sahih

Dawud reported from 'Amir who said:

I asked 'Alqama if Ibn Mas'ud was present with the Messenger of Allah (ﷺ) on the night of the Jinn (the night when the Prophet (ﷺ) met them). He (Ibn Mas'uad) said: No, but we were in the company of the Messenger of Allah (ﷺ) one night and we missed him. We searched for him in the valleys and the hills and said. He has either been taken away (by jinn) or has been secretly killed. He (the narrator) said. We spent the worst night which people could ever spend. When it was dawn we saw him coming from the side of Hiri'. He (the narrator) reported. We said: Messenger of Allah, we missed you and searched for you, but we could not find you and we spent the worst night which people could ever spend. He (the Prophet) said: There came to me an inviter on behalf of the Jinn and I went along with him and recited to them the Qur'an. He (the narrator) said: He then went along with us and showed us their traces and traces of their embers. They (the Jinn) asked him (the Prophet) about their provision and he said: Every bone on which the name of Allah is recited is your provision. The time it will fall in your hand it would be covered with flesh, and the dung of (the camels) is fodder for your animals. The Messenger of Allah (ﷺ) said: Don't perform istinja with these (things) for these are the food of your brothers (Jinn).

حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا عَبْدُ الأَعْلَى، عَنْ دَاوُدَ، عَنْ عَامِرٍ، قَالَ سَأَلْتُ عَلْقَمَةَ هَلْ كَانَ ابْنُ مَسْعُودٍ شَهِدَ مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم لَيْلَةَ الْجِنِّ قَالَ فَقَالَ عَلْقَمَةُ أَنَا سَأَلْتُ ابْنَ مَسْعُودٍ فَقُلْتُ هَلْ شَهِدَ أَحَدٌ مِنْكُمْ مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم لَيْلَةَ الْجِنِّ قَالَ لاَ وَلَكِنَّا كُنَّا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم ذَاتَ لَيْلَةٍ فَفَقَدْنَاهُ فَالْتَمَسْنَاهُ فِي الأَوْدِيَةِ وَالشِّعَابِ فَقُلْنَا اسْتُطِيرَ أَوِ اغْتِيلَ - قَالَ - فَبِتْنَا بِشَرِّ لَيْلَةٍ بَاتَ بِهَا قَوْمٌ فَلَمَّا أَصْبَحْنَا إِذَا هُوَ جَاءٍ مِنْ قِبَلِ حِرَاءٍ - قَالَ - فَقُلْنَا يَا رَسُولَ اللَّهِ فَقَدْنَاكَ فَطَلَبْنَاكَ فَلَمْ نَجِدْكَ فَبِتْنَا بِشَرِّ لَيْلَةٍ بَاتَ بِهَا قَوْمٌ ‏.‏ فَقَالَ ‏"‏ أَتَانِي دَاعِي الْجِنِّ فَذَهَبْتُ مَعَهُ فَقَرَأْتُ عَلَيْهِمُ الْقُرْآنَ ‏"‏ ‏.‏ قَالَ فَانْطَلَقَ بِنَا فَأَرَانَا آثَارَهُمْ وَآثَارَ نِيرَانِهِمْ وَسَأَلُوهُ الزَّادَ فَقَالَ ‏"‏ لَكُمْ كُلُّ عَظْمٍ ذُكِرَ اسْمُ اللَّهِ عَلَيْهِ يَقَعُ فِي أَيْدِيكُمْ أَوْفَرَ مَا يَكُونُ لَحْمًا وَكُلُّ بَعَرَةٍ عَلَفٌ لِدَوَابِّكُمْ ‏"‏ ‏.‏ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ فَلاَ تَسْتَنْجُوا بِهِمَا فَإِنَّهُمَا طَعَامُ إِخْوَانِكُمْ ‏"‏ ‏.‏

References2 variants
In-Book Reference
Book 4, Hadith 169
USC-MSA web (English) reference
Book 4, Hadith 903 (deprecated numbering scheme)
Sharh · explanationclick to expand
Jinn is a creation of Allah, the Almighty. They are commanded to worship Him alone so they will be held accountable as mankind. Some believe in Allah while others disbelieve. In this hadith, Aamer Al-Sha’by asked Alqamah ibn Qais An-Nakh’i, one of the most famous students of Ibn Masoud, if Ibn Masoud was present the night of the Jinn with the Prophet ﷺ. Alqama told him that he asked Ibn Masoud the same question. Ibn Masoud said, "No" In the narration of Muslim, Ibn Masoud said, "I wished I had been with him" to see the miracles that the Prophet ﷺ told them about. Ibn Masoud narrated that they one day were with the Prophet ﷺ who stood to go somewhere but he did not come back. They were searching for him in valleys and hills. All our efforts were in vain. They thought he was taken by Jinn or secretly killed. It was the worst night they ever spent, out of sadness and sorrow. In the morning, the Prophet ﷺ came from the direction of Hira Cave, five kilometers away from the Sacred Mosque, where the Prophet ﷺ used to worship Allah before his mission. Upon informing him about what happened to them, he related to them his story with the Jinn. One of them asked him to come to recite the Quran to them. The Prophet ﷺ went with his companions to show them the Jinn's tracks and their fire's traces. The Jinn asked the Prophet ﷺ to specify foods for them, so he allowed them to eat every bone on which Allah’s name was mentioned. He promised them that once they held it, it would be thickly covered with meat. Moreover, he specified dung as fodders for their animals. Thus, he prohibited his companions from using bones for removing impurities like urine or feces, for they were the food of their brothers of Jinn, out of respect. This hadith contains the following benefits: (1) The Prophet ﷺ was sent to both the Jinn and mankind, (2) It shows Allah’s mercy to mankind in choosing their foods, and (3) It clarifies the companions’ deep friendship with the Prophet ﷺ..
Related hadiths2
Compare isnād across 2 related chains →