This is called ‘to know how much is enough.’

The Second Awakening is to know how much is enough. Even if you already have something, you set a limit on it for yourself for using it. So you should know how much is enough. The Buddha said, “Monks, if you want to be free from suffering, you should contemplate knowing how much is enough. By knowing it you are in the place of enjoyment and peacefulness. If you know how much is enough,  you are contented even when you sleep on the ground. If you don’t know it, you are discontented even when you are in heaven. You can feel poor can have much wealth.  You may constantly be pulled by the five sense desires and pitied by those who know how much is enough. This is called ‘to know how much is enough.’”
Dogen (1243) Enlightenment Unfolds. Trans. Kaz Tanahashi. Shambala:Boston