The Messenger [sallal-laahu-alayhi-wasallam] said:
إِنَّ الْمُفْلِسَ مِنْ أُمَّتِي يَأْتِي يَوْمَ الْقِيَامَةِ بِصَلَاةٍ وَصِيَامٍ وَزَكَاةٍ وَيَأْتِي قَدْ شَتَمَ هَذَا وَقَذَفَ هَذَا وَأَكَلَ مَالَ هَذَا وَسَفَكَ دَمَ هَذَا وَضَرَبَ هَذَا
فَيُعْطَى هَذَا مِنْ حَسَنَاتِهِ وَهَذَا مِنْ حَسَنَاتِهِ
فَإِنْ فَنِيَتْ حَسَنَاتُهُ قَبْلَ أَنْ يُقْضَى مَا عَلَيْهِ أُخِذَ مِنْ خَطَايَاهُمْ فَطُرِحَتْ عَلَيْهِ ثُمَّ طُرِحَ فِي النَّارِ
Indeed, the bankrupt one of my Ummah will come on the Day of Resurrection with prayer, fasting and Zakah (in his account), but he comes along having abused this one, slandered that one, unlawfully took the wealth of this one and shed the blood of that one, and beaten that one. So this one will be given from his good deeds, and that one will be given from his good deeds. And if his good deeds finishes before the judgment is made on him, some of their sins(i.e. the ones he wronged) will be taken and cast onto him, then he will be thrown into the Fire.
[Reported by Muslim. Number: 2581]