Sayyiduna Abdullah (may Allah be pleased with him) narrates: We were present in a cave with the Prophet (peace and blessings of Allah be upon him) when this Surah was revealed to him. So I learned this Surah from his own recitation, even though it had just been revealed to him a short while ago. I do not know at which verse he ended it—was it at «فباي حديث بعده يومنون» or at this verse «واذا قبل لهم اركعو الا يركعون »? In the meantime, a snake appeared and then entered its hole, so the Prophet (peace and blessings of Allah be upon him) said: You have been protected from its harm just as it has been protected from any harm from your side.
Hadith Referenceصحیح ابن حبان / كتاب الرقائق / 707
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «صحيح سنن النسائي» (2700).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده حسن، عاصم: هو ابن أبي النجود حسن الحديث، وسفيان: هو ابن عيينة، وزر: هو ابن حبيش.