Maalik ar-Ruaasi رضي الله عنه reported that he, along with others from Banu Kilaab, attacked a group of people from the Banu Asad tribe. They killed some and dealt indecently with female prisoners. News of what happened reached Nabi, who then cursed the attackers and supplicated against them.
When Maalik heard this he tied his own hands, went to Nabi صلى الله عليه وسلم and said, "O Messenger of Allah, be pleased with us, may Allah be pleased with you."
Nabiصلى الله عليه وسلم turned away from him, but he went around Nabi صلى الله عليه وسلم to face him. He then repeated his previous plea, "Be pleased with us, may Allah be pleased with you." He then said, "For by Allah, when one tries to please the Lord, He becomes pleased with Him."
Nabiصلى الله عليه وسلم drew nearer to Maalikرضي الله عنه and asked him, "Have you repented for what you did, and asked Allah to forgive you?"
"Yes," answered Maalikرضي الله عنه.
"O Allah, pardon him and be pleased with him," said the Prophet صلى الله عليه وسلم