The Messenger of Allah ﷺ said, "Beware of injustice, for injustice will be darkness on the Day of Resurrection. And beware of greed, for greed destroyed those who came before you. It drove them to shed each other's blood and to violate what was sacred to them."
أن رسول الله ﷺ قال: اتقوا الظلم، فإن الظلم ظلمات يوم القيامة، واتقوا الشح، فإن الشح أهلك من كان قبلكم، حملهم على أن سفكوا دماءهم، واستحلوا محارمهم.
Muslim narrated it in "Righteousness and Kinship Ties" (2578) from Abdullah bin Maslama bin Qanab, who said, Dawud, meaning Ibn Qays, narrated to us (2578), from Ubaydullah bin Miqsam, from Jabir, and he mentioned it.