It is narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both): "We said to the Prophet (peace and blessings be upon him) (or the Prophet, peace and blessings be upon him, himself said): 'I take your pledge that you will not associate anyone with Allah, you will not steal, you will not commit adultery, and you will not unjustly kill a soul which Allah has made sacred. So whoever among you commits any of these and is punished for it swiftly in this world, that is an expiation for him; and whoever's sin is concealed, his matter is with Allah: if He wills He will punish him and if He wills He will have mercy on him. And whoever does not commit any of these sins, I guarantee Paradise for him.'"
Ahmad bin Mani' also narrated that the Messenger of Allah (peace and blessings be upon him) said: "Do you know on what you have pledged allegiance to me?" The Companions (may Allah be pleased with them) said: "Allah and His Messenger (peace and blessings be upon him) know best." He (peace and blessings be upon him) said: "That you will not associate anyone with Allah, you will not steal, you will not commit adultery, and you will not kill a soul which Allah has made sacred except by right. So whoever does any of these and is punished swiftly in this world, that is an expiation for his sin; and whoever's sin remained concealed (in this world), his reckoning is with Allah: if He wills He will forgive him and if He wills He will punish him. And whoever does not come (before Allah) with any of these sins, I guarantee Paradise for him."
I (al-Busiri) say: The majority of hadith scholars agree that Layth bin Abi Sulaym is weak.