Haram money that takes the ruling of usurpation

He collected sums due to some persons from others but was not able to give the first their rights