Rabee’ bin Sulaimaan (rahimahullah) reports that he once heard Imaam Shaafi‘ee (rahimahullah) mention the following:
The goodness of this world and the next can be found in five qualities; the contentment of the heart, refraining from causing any harm or inconvenience to the creation, earning a halaal livelihood, adorning yourself with taqwa, and placing your trust in Allah Ta‘ala in all conditions.
(Manaaqib-ush-Shaafi‘ee li-lBayhaqi vol. 2 pg. 170)