Amr bin As reported,

When the Messenger of Allah ﷺ sent him on the expedition of Dhat al-Salasil, Amr said, "I had a wet dream on an extremely cold night, and I feared that if I bathed I would perish, so I performed tayammum and then led my companions in the dawn prayer."When we came to the Messenger of Allah ﷺ, I mentioned that to him.He asked, "Amr, did you lead your companions in prayer while you were in a state of major impurity?"I replied, "Yes, Messenger of Allah. I had a wet dream on an extremely cold night, and I feared that if I bathed I would perish, so I remembered the words of Allah عز وجل, 'And do not kill yourselves. Indeed, Allah is ever Merciful to you' [Nisa 4:29]. So I performed tayammum and then prayed."The Messenger of Allah ﷺ laughed and said nothing.

Azami 12140

Sahih

عن عمرو بن العاص أنه قال

لما بعثه رسول الله ﷺ عام ذات السلاسل قال: فاحتلمت في ليلة باردة شديدة البرد، فأشفقت إن اغتسلت أن أهلك، فتيممت، ثم صليت بأصحابي صلاة الصبح. قال: فلما قدمنا على رسول الله ﷺ ذكرت ذلك له، فقال: يا عمرو، صليت بأصحابك وأنت جنب؟ قلت: نعم يا رسول الله، إني احتلمت في ليلة باردة شديدة البرد، فأشفقت إن اغتسلت أن أهلك، وذكرت قول الله عز وجل: {ولا تقتلوا أنفسكم إن الله كان بكم رحيما} فتيممت ثم صليت. فضحك رسول الله ﷺ ولم يقل شيئا.

الأعظمي 12140صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "What is above it. As for those who believe, they know that it is the truth from their Lord. But as for those who disbelieve, they say, 'What did Allah intend by this as an example?' He misleads" and "Whoever does that in aggression and injustice, We will drive him into a Fire, and that is easy for Allah"
Numbering
Jami al-Kamil 12140 (2nd edition)
Azami 12140