One who engages in good conduct by body, speech, and mind is dear to themselves.

Piya sutta - Dear

At Sāvatthi.

Once, King Pasenadi of Kosala was sitting to one side, and he said to the Blessed One: "Here, venerable sir, when I was alone in seclusion, a reflection arose in my mind: 'Who are dear to themselves, and who are not dear to themselves?'"

Then it occurred to me, venerable sir: "Those who engage in misconduct by body, speech, and mind; they are not dear to themselves. Even though they might say, 'We are dear to ourselves,' still, they are not dear to themselves. Why is that? Because whatever a person who is not dear to themselves would do to someone who is not dear to them, they do just that to themselves. Therefore, they are not dear to themselves.

But those who engage in good conduct by body, speech, and mind; they are dear to themselves. Even though they might say, 'We are not dear to ourselves,' still, they are dear to themselves. Why is that? Because whatever a person who is dear to themselves would do to someone who is dear to them, they do just that to themselves. Therefore, they are dear to themselves."

"That is how it is, great king, that is how it is, great king. Those who engage in misconduct by body, speech, and mind; they are not dear to themselves. Even though they might say, 'We are dear to ourselves,' still, they are not dear to themselves. Why is that? Because whatever a person who is not dear to themselves would do to someone who is not dear to them, they do just that to themselves. Therefore, they are not dear to themselves.

But those who engage in good conduct by body, speech, and mind; they are dear to themselves. Even though they might say, 'We are not dear to ourselves,' still, they are dear to themselves. Why is that? Because whatever a person who is dear to themselves would do to someone who is dear to them, they do just that to themselves. Therefore, they are dear to themselves."

The Blessed One said this. Having spoken thus, the Well-Gone One further said this:

"If one perceives oneself as dear, One should not associate with evil actions. It is not easy to achieve happiness, For one who does harmful actions.
Overcome by the end-maker, Having abandoned the human existence, What does one have as their own? What do they take when they go? What follows them like a shadow That never departs?
Both good and evil, Whatever a mortal does here, That is what is truly theirs, That is what they take when they go, That is what follows them Like a shadow that never departs.
Therefore, one should do good deeds, A collection for the future life. Merits are the support for beings, In the next world."