SN46.26 — Udāyivagga Taṇhakkhayasutta
Disciples, the path that leads to the cessation of craving, that path should be developed. What is that path? It is the seven factors of enlightenment.
What are the seven? They are: the factor of mindfulness ... the factor of equanimity.
When this was said, the venerable Udāyi said to the Blessed One, How, venerable sir, are the seven factors of enlightenment developed, and how do they lead to the cessation of craving?
The Blessed One replied, Here, Udāyi, a disciple develops the factor of mindfulness, which is based on seclusion, dispassion, cessation, and the relinquishing of attachment.
As he develops the factor of mindfulness, which is based on seclusion, dispassion, cessation, and the relinquishing of attachment, craving is abandoned. With the abandonment of craving, the action is abandoned. With the abandonment of action, suffering is abandoned ...
He develops the factor of equanimity, which is based on seclusion, dispassion, cessation, and the relinquishing of attachment.
As he develops the factor of equanimity, which is based on seclusion, dispassion, cessation, and the relinquishing of attachment, craving is abandoned. With the abandonment of craving, the action is abandoned. With the abandonment of action, suffering is abandoned.
Thus, Udāyi, through the cessation of craving, there is the cessation of action, and through the cessation of action, there is the cessation of suffering.