This is called accomplishment in balanced finances.

Dīghajāṇu of the Koliyans asks the Buddha to teach in a way suitable for lay people who enjoy life. The Buddha teaches four practical ways to ensure success in this life, and another four ways to ensure success in the next.