Hazrat Abu Huraira, may Allah Most High be pleased with him, narrates from beloved Prophet, may Peace and Blessings of Allah Most High be upon him, that three things are deliverers: (1) To fear Allah Most High, privately and publicly, (2) to spend moderately both in poverty and affluence and (3) to be just both in anger as well as in pleasant situations. Three things are destroyers: (1) excessive miserliness, (2) to submit to the desires of baser self and (3) to think of one-self to be superior to others.
The book The Sources is by Hafiz Ibn-e-Hajar Asqalani.