Bulugh al-Maram 1234
وَعَنِ ابْنِ عُمَرَ قَالَ: قَالَ رَسُولُ اللَّهِ - صلى الله عليه وسلم: «اجْتَنِبُوا هَذِهِ الْقَاذُورَاتِ الَّتِي نَهَى اللَّهُ تَعَالَى عَنْهَا, فَمَنْ أَلَمَّ بِهَا فَلْيَسْتَتِرْ بِسِتْرِ اللَّهِ تَعَالَى, وَلِيَتُبْ إِلَى اللَّهِ تَعَالَى, فَإِنَّهُ مَنْ يَبْدِ لَنَا صَفْحَتَهُ نُقِمْ عَلَيْهِ كِتَابَ اللَّهِ - عز وجل». رَوَاهُ الْحَاكِمُ, وَهُوَ فِي «الْمُوْطَّإِ» مِنْ مَرَاسِيلِ زَيْدِ بْنِ أَسْلَمَ.
From Ibn ʿUmar, who said: The Messenger of Allah ﷺ said: "Avoid these filthy things which Allah the Exalted has forbidden. Whoever falls into any of them, let him conceal himself with the covering of Allah the Exalted and repent to Allah the Exalted, for whoever reveals to us his [wrong]doing, we will carry out on him the Book of Allah, Mighty and Majestic." Al-Hakim reported it, and it is in al-Muwattaʾ among the mursal reports of Zayd ibn Aslam.