Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:39Ḥaywah b. Shurayḥ al-Ḥimṣī > Ibn ʿAyyāsh > Yaḥyá b. Abū ʿAmr al-Saybānī > ʿAbdullāh b. al-Daylamī > ʿAbdullāh b. Masʿūd

A deputation of the jinn came to the Prophet ﷺ and said: O Muhammad, forbid your community to cleans themselves with a bone or dung or charcoal, for in them Allah has provided sustenance for us. So the Prophet ﷺ forbade them to do so.  

أبو داود:٣٩حَدَّثَنَا حَيْوَةُ بْنُ شُرَيْحٍ الْحِمْصِيُّ حَدَّثَنَا ابْنُ عَيَّاشٍ عَنْ يَحْيَى بْنِ أَبِي عَمْرٍو السَّيْبَانِيِّ عَنْ عَبْدِ اللَّهِ بْنِ الدَّيْلَمِيِّ عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ قَالَ

قَدِمَ وَفْدُ الْجِنِّ عَلَى رَسُولِ اللَّهِ ﷺ فَقَالُوا يَا مُحَمَّدُ انْهَ أُمَّتَكَ أَنْ يَسْتَنْجُوا بِعَظْمٍ أَوْ رَوْثَةٍ أَوْ حُمَمَةٍ فَإِنَّ اللَّهَ تَعَالَى جَعَلَ لَنَا فِيهَا رِزْقًا قَالَ فَنَهَى النَّبِيُّ ﷺ عَنْ ذَلِكَ  


See similar narrations below:

Collected by Bayhaqī
bayhaqi:531Abū ʿAlī al-Rūdhbārī > Abū Bakr b. Dāsah > Abū Dāwd > Ḥaywah b. Shurayḥ al-Ḥimṣī > Ibn ʿAyyāsh > Yaḥyá b. Abū ʿAmr al-Saybānī > ʿAbdullāh b. al-Daylamī > ʿAbdullāh b. Masʿūd

A deputation of the jinn came to the Prophet ﷺ and said: O Muhammad, forbid your community to cleans themselves with a bone or dung or charcoal, for in them Allah has provided sustenance for us. So the Prophet ﷺ forbade them to do so. (Using translation from Abū Dāʾūd 39)   

البيهقي:٥٣١وَأَخْبَرَنَا أَبُو عَلِيٍّ الرُّوذْبَارِيُّ أنا أَبُو بَكْرِ بْنُ دَاسَةَ ثنا أَبُو دَاودَ ثنا حَيْوَةُ بْنُ شُرَيْحٍ الْحِمْصِيُّ نا ابْنُ عَيَّاشٍ عَنْ يَحْيَى بْنِ أَبِي عَمْرٍو السَّيْبَانِيُّ عَنْ عَبْدِ اللهِ بْنِ الدَّيْلَمِيِّ عَنْ عَبْدِ اللهِ بْنِ مَسْعُودٍ قَالَ

قَدِمَ وَفْدُ الْجِنِّ عَلَى النَّبِيِّ ﷺ فَقَالُوا يَا مُحَمَّدُ انْهَ أُمَّتَكَ أَنْ يَسْتَنْجُوا بِعَظْمٍ أَوْ رَوْثَةٍ أَوْ حُمَمَةٍ فَإِنَّ اللهَ ﷻ جَعَلَ لَنَا فِيهَا رِزْقًا قَالَ فَنَهَى النَّبِيُّ ﷺ