For the distressing and feverish defilements that might arise in someone who lives without developing these things do not arise when they are developed. These are called the defilements that should be given up by developing.
Now, take a mendicant who, by seeing, has given up the defilements that should be given up by seeing. By restraint, they’ve given up the defilements that should be given up by restraint. By using, they’ve given up the defilements that should be given up by using. By enduring, they’ve given up the defilements that should be given up by enduring. By avoiding, they’ve given up the defilements that should be given up by avoiding. By dispelling, they’ve given up the defilements that should be given up by dispelling. By developing, they’ve given up the defilements that should be given up by developing. They’re called a mendicant who lives having restrained all defilements, who has cut off craving, cast off the fetters, and by rightly comprehending conceit has made an end of suffering.” That is what the Buddha said. Satisfied, the mendicants approved what the Buddha said.
Middle Discourses 3 Heirs in the Teaching