Abdullah bin Masud reported,

"Was any of you with the Prophet ﷺ on the night of the jinn?"Ibn Masud replied, "None of us was with him, but we lost him one night while he was in Mecca. We said, 'He has been assassinated, or snatched away. What has happened to him?' So we spent the worst night any people ever spent, until morning came, or until daybreak approached, when suddenly we saw him coming from the direction of Hira."They mentioned to him the state they had been in, and he said, "A caller from the jinn came to me, so I went with him and recited the Quran to them." Then he set off and showed us their traces and the traces of their fires.Shaybi said, They asked him about provision, and they were among the jinn of the peninsula. He said, "Every bone over which the name of Allah is mentioned that comes into your hands will have more flesh on it than it had before, and every piece of dung or droppings will be fodder for your animals."The Messenger of Allah ﷺ then said, "So do not use these two for cleaning yourselves after relieving yourselves, for they are the food of your brothers the jinn."

Tirmidhi 3258

Sahih

حدثنا علي بن حجر أخبرنا إسمعيل بن إبراهيم عن داود عن الشعبي عن علقمة قال

قلت لابن مسعود رضي الله عنه

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

الترمذي 3258صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Tafsir of the Quran
Chapter
From Surah Ahqaf
Numbering
Darussalam 3258
Tirmidhi 3258