It is narrated from Sayyiduna Aswad bin Sari' (may Allah be pleased with him) that a captive was brought to the Prophet (peace and blessings be upon him), and he said: "O Allah, I repent to You, and I do not repent to Muhammad (peace and blessings be upon him)." The Prophet (peace and blessings be upon him) said: "He has recognised the right of the one truly entitled to it."
Imam Ahmad (may Allah have mercy on him) narrated it in his Musnad from Muhammad bin Mus'ab, from Sallam (may Allah have mercy on him).
And Yahya bin Ma'in (may Allah have mercy on him) and others have criticised Muhammad bin Mus'ab, while Imam Ahmad (may Allah have mercy on him) said: "There is no harm in him."
Related hadith on this topic