Sayyiduna Jarir (may Allah be pleased with him) said: We pledged allegiance to the Prophet (peace and blessings be upon him) in the same way as he (peace and blessings be upon him) had taken the pledge from the women: "Whoever of us dies without having committed any of these (sins), Paradise is guaranteed for him. Whoever dies having committed any of them and the prescribed punishment (hadd) has been carried out on him, that is his expiation. And whoever of us dies having committed any of them but it was concealed (in this world), his reckoning rests with Allah."
Hadith Referenceالمعجم الكبير للطبراني / باب الجيم / 2247