Amir reported,

I asked Alqama, "Was Ibn Masud present with the Messenger of Allah ﷺ on the night of the jinn?"Alqama replied, "I asked Ibn Masud myself. I said, 'Was any of you present with the Messenger of Allah ﷺ on the night of the jinn?'He answered, 'No. But one night we were with the Messenger of Allah ﷺ when we lost sight of him. We searched for him in the valleys and mountain passes, and we said, "He has been snatched away, or he has been assassinated!" We spent the worst night any people ever spent. When morning came, we suddenly saw him coming from the direction of Hira.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 caller from the jinn came to me, and I went with him and recited the Quran to them."'Then he took us along and showed us their traces and the traces of their fires. They had asked him for provision, and he told them, 'Every bone over which the name of Allah has been mentioned will come into your hands with more flesh on it than ever, and every piece of dung 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."

Azami 13273

Sahih

عن عامر قال

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

الأعظمي 13273صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Ahqaf
Section
His saying, "And when We directed to you a group of the jinn listening to the Quran. When they attended it, they said, 'Listen quietly.' And when it was concluded, they went back to their people as warners. They said, 'O our people, indeed we have heard a Book revealed after Musa, confirming what was before it, guiding to the truth and to a straight path. O our people, respond to the caller of Allah and believe in Him. He will forgive you your sins and protect you from a painful punishment. And whoever does not respond to the caller of Allah will not escape on earth, and he will not have besides Him any protectors. Those are in'"
Numbering
Jami al-Kamil 13273 (2nd edition)
Azami 13273