入るを量りて出ずるを為す(いるをはかりていずるをなす)

Japanese vocabulary

Meaning: consider your income before spending

See it used in real works