Alqama reported,

I asked Ibn Masud, "Did any of you witness the night of the jinn with the Messenger of Allah ﷺ?"He replied, "No, but we were with the Messenger of Allah ﷺ one night, and we lost track of him. We searched for him in the valleys and ravines, saying, 'He has been snatched away or assassinated!' We spent the worst night any people ever spent. When morning came, there he was, coming from the direction of Hira."He continued, "We said, 'Messenger of Allah, we lost you and searched for you but could not find you, so we spent the worst night any people ever spent.'He said, 'A summoner from the jinn came to me, and I went with him and recited the Quran to them.'"He said, "Then he took us along and showed us their traces and the traces of their fires. They had asked him for provision, and he had told them, 'Every bone over which Allah's name has been mentioned that falls into your hands will have flesh on it as abundant as ever, and every piece of dung is fodder for your animals.'"The Messenger of Allah said, "So do not use these two for cleaning yourselves after relieving yourselves, for they are the food of your brothers."

Azami 1388

Sahih

عن علقمة قال

سألت ابن مسعود فقلت: هل شهد أحد منكم مع رسول الله ﷺ ليلة الجن؟ قال: لا. ولكنا كنا مع رسول الله ﷺ ذات ليلة، ففقدناه، فالتمسناه في الأودية والشعاب، فقلنا: استطير، أو اغتيل! قال فبتنا بشر ليلة بات بها قوم فلما أصبحنا إذا هو جاء من قبل حراء. قال: فقلنا: يا رسول الله! فقدناك فطلبناك فلم نجدك فبتنا بشر ليلة بات بها قوم فقال: أتاني داعي الجن، فذهبت معه، فقرأت عليهم القرآن. قال: فانطلق بنا فأرانا آثارهم وآثار نيرانهم. وسألوه الزاد. فقال: لكم كل عظم ذكر اسم الله عليه يقع في أيديكم أوفر ما يكون لحما. وكل بعرة علف لدوابكم. فقال رسول الله: فلا تستنجوا بهما؛ فإنهما طعام إخوانكم.

الأعظمي 1388صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Purification
Section
One should not perform istinja with dung or bones
Numbering
Jami al-Kamil 1388 (2nd edition)
Azami 1388