Even though I am afflicted in body, my mind will be unafflicted.
Āturakāyassa me sato cittaṃ anāturaṃ bhavissatī’ti.
...
How is one afflicted in body and afflicted in mind?
The uninstructed worldling, ...regards form as self, or self as possessing form, or form as in self, or self as in form. He lives obsessed by the notions: ‘I am form, form is mine.’ As he lives obsessed by these notions, that form of his changes and alters. With the change and alteration of form, there arise in him sorrow, lamentation, pain, displeasure, and despair.
Idem for feelings, perception, volitional formations and consciousness (khandhas).
It is in such a way, householder, that one is afflicted in body and afflicted in mind.
...
And how, householder, is one afflicted in body but not afflicted in mind?
He does not regard form as self, or self as possessing form, or form as in self, or self as in form. He does not live obsessed by the notions: ‘I am form, form is mine.’ As he lives unobsessed by these notions, that form of his changes and alters. With the change and alteration of form, there do not arise in him sorrow, lamentation, pain, displeasure, and despair.
SN 22.1 and SA 107
https://suttacentral.net/sn22.1
How is the end - How a Tathāgata sees feelings:
https://suttacentral.net/en/mn38/85-86
How is the end - How an arahant sees feelings:
https://suttacentral.net/en/mn140/31
"All that is felt, not being delighted in, will become cool right here."
In other words, If you delight (or be repulsed, or be ignorant) in feelings, things will continue. You will be bound to samsara.
What is felt of this world, being of this world; not getting attached (repulsion, attraction or ignorance) towards these feeling is the end of rebirth and of this world.
Also in
https://suttacentral.net/en/sn12.51/14-17