Abu Hurairah reported,

Abdullah bin Masud reported that he used to carry a water vessel for the Prophet ﷺ to use for his ablution and relieving himself. The narration includes the following.I asked, "What is the matter with bones and dung?"He replied, "They are food for the jinn. A delegation of the jinn of Nasibin came to me, and what excellent jinn they were, and they asked me for provisions. So I prayed to Allah for them that they would never pass by a bone or piece of dung without finding food on it."

Azami 736

Sahih

عن أبي هريرة

أنه كان يحمل مع النبي ﷺ إداوة لوضوئه وحاجته… وفيه: فقلت: ما بال العظم والروثة؟ قال: هما من طعام الجن، وإنه أتاني وفد جن نصيبين ونعم الجن- فسألوني الزاد، فدعوت الله لهم أن لا يمروا بعظم ولا بروثة إلا وجدوا عليها طعاما.

الأعظمي 736صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in the Prophet ﷺ
Section
Sending of the Prophet to the jinn
Numbering
Jami al-Kamil 736 (2nd edition)
Azami 736