Abdullah bin Umar reported,

The Messenger of Allah ﷺ stood up after stoning the man from Aslam and said, "Avoid this filth that Allah has forbidden. Whoever falls into any of it, let him conceal himself with the covering of Allah and repent to Allah, for whoever exposes his offense to us, we will carry out upon him the punishment prescribed in the Book of Allah عز وجل."

Azami 6915

Sahih

عن ابن عمر

أن رسول الله ﷺ قام بعد أن رجم الأسلمي فقال: اجتنبوا هذه القاذورة التي نهى الله عنها، فمن ألم فليستتر بستر الله، وليتب إلى الله، فإنه من يبد لنا صفحة نقم عليه كتاب الله عز وجل.

الأعظمي 6915صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Legal punishments
Chapter
Hudud in general
Section
Concealing one's own sins
Numbering
Jami al-Kamil 6915 (2nd edition)
Azami 6915