Abdullah bin Masud reported,

While I was with the Prophet ﷺ in a field, and he was leaning on a palm-branch, some Jews passed by. Some of them said to the others, "Ask him about the soul."Others said, "What do you want from him?"Some said, "He will not respond with something you dislike."They said, "Ask him."So they asked him about the soul. The Prophet ﷺ remained silent and did not answer them at all. I realized that he was receiving revelation, so I stayed where I was. When the revelation came down, he recited, "They ask you about the soul. Say, the soul is from the affair of my Lord, and you have not been given of knowledge except a little" [Isra 17:85].

Bukhari 4721

Sahih

حدثنا عمر بن حفص بن غياث حدثنا أبي حدثنا الأعمش قال حدثني إبراهيم عن علقمة

عن عبد الله رضي الله عنه قال

بينا أنا مع النبي ﷺ في حرث وهو متكئ على عسيب إذ مر اليهود فقال بعضهم لبعض سلوه عن الروح فقال ما رأيكم إليه وقال بعضهم لا يستقبلكم بشيء تكرهونه فقالوا سلوه فسألوه عن الروح فأمسك النبي ﷺ فلم يرد عليهم شيئا فعلمت أنه يوحى إليه فقمت مقامي فلما نزل الوحي قال {ويسألونك عن الروح قل الروح من أمر ربي وما أوتيتم من العلم إلا قليلا}

البخاري 4721صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
His saying, "And they ask you about the soul"
Numbering
Darussalam 4721
Bukhari 4721