"We were with the Prophet in a gathering and he said: 'Pledge to me that you will not associate anything with Allah, you will not steal, and you will not have unlawful sexual relations.' He recited the Verse to them (and said) Whoever does any of these things, and Allah conceals him then it is up to Allah, the mighty and Sublime: If He wills, He will punish him, and if He wills, He will forgive him. (Using translation from Nasāʾī 4210)
كُنَّا عِنْدَ النَّبِيِّ ﷺ فِي مَجْلِسٍ فَقَالَ «تُبَايِعُونِي عَلَى أَنْ لَا تُشْرِكُوا بِاللهِ شَيْئًا وَلَا تَسْرِقُوا وَلَا تَزْنُوا» وَقَرَأَ عَلَيْهِمُ الْآيَةَ «فَمَنْ وَفَّى مِنْكُمْ فَأَجْرُهُ عَلَى اللهِ وَمَنْ أَصَابَ مِنْ ذَلِكَ شَيْئًا فَسَتَرَهُ اللهُ عَلَيْهِ فَهُوَ إِلَى اللهِ إِنْ شَاءَ عَذَّبَهُ وَإِنْ شَاءَ غَفَرَ لَهُ»