Abu Hurairah reported,

The Messenger of Allah ﷺ asked, "Do you know who the bankrupt person is?"They replied, "The bankrupt among us is the one who has neither money nor possessions."He said, "The truly bankrupt of my nation is the one who comes on the Day of Resurrection with prayer, fasting, and charity, but he will have insulted this person, slandered that one, consumed the wealth of another, shed the blood of yet another, and struck someone else. So this one will be given from his good deeds, and that one will be given from his good deeds. If his good deeds run out before his debts are settled, then their sins will be taken and cast upon him, and he will then be thrown into the Fire."

Azami 5924

Sahih

عن أبي هريرة

أن رسول الله ﷺ قال: أتدرون ما المفلس؟ قالوا: المفلس فينا من لا درهم له ولا متاع فقال: إن المفلس من أمتي يأتي يوم القيامة بصلاة وصيام وزكاة، ويأتى قد شتم هذا، وقذف هذا، وأكل مال هذا، وسفك دم هذا، وضرب هذا، فيعطى هذا من حسناته، وهذا من حسناته، فإن فنيت حسناته قبل أن يقضى ما عليه أخذ من خطاياهم فطرحت عليه، ثم طرح في النار.

الأعظمي 5924صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Injustices and usurpation
Section
Taking the oppressor's good deeds and giving them to the oppressed on the Day of Resurrection
Numbering
Jami al-Kamil 5924 (2nd edition)
Azami 5924