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 one another's blood and to violate what was sacred to them."
أن رسول الله ﷺ قال: اتقوا الظلم، فإن الظلم ظلمات يوم القيامة، واتقوا الشح، فإن الشح أهلك من كان قبلكم، حملهم على أن سفكوا دماءهم واستحلوا محارمهم.
Muslim narrated it in Al-Birr wal-Silah (2578:56), from Abdullah bin Maslama bin Qanab, who said, Dawud, meaning Ibn Qays, narrated to us, from Ubaydullah bin Miqsam, from Jabir, who mentioned it.