Bulugh al-Maram, Book 10, Hadith 1261 (English)

Ibn 'Umar (RAA) narrated that the Messenger of Allah said: "Avoid these filthy practices which Allah, the Almighty has prohibited. He who commits any of these, should conceal with Allah's Most High Veil (i.e. should not speak about it), and should turn to Allah, the Most High in repentance, for if anyone uncovers his hidden sins (to us), we shall inflict on him the punishment prescribed by Allah, the Al-Mighty." Related by Al-Hakim and in Al-Muwatta' but traced to its narrator Zaid bin Aslam as hadith Mursal.

وَعَنْ اِبْنِ عُمَرَ قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ اِجْتَنِبُوا هَذِهِ اَلْقَاذُورَاتِ اَلَّتِي نَهَى اَللَّهُ تَعَالَى عَنْهَا, فَمَنْ أَلَمَّ بِهَا فَلْيَسْتَتِرْ بِسِتْرِ اَللَّهِ تَعَالَى, وَلِيَتُبْ إِلَى اَللَّهِ تَعَالَى, فَإِنَّهُ مَنْ يَبْدِ لَنَا صَفْحَتَهُ نُقِمْ عَلَيْهِ كِتَابَ اَللَّهِ عَزَّ وَجَلَّ } رَوَاهُ اَلْحَاكِمُ, وَهُوَ فِي "اَلْمُوْطَّإِ" مِنْ مَرَاسِيلِ زَيْدِ بْنِ أَسْلَمَ (1589)‏.‏ ‏1 ‏- صحيح.‏ وهو مخرج في "مشكل الآثار " للطحاوي برقم (91)‏.‏

sunnah.com

also referenced under: Book 10, Hadith 1222 (In-Book)