The views “I have a self” and “I have no self” are equally wrong.
The Buddha once said:
“What do you think, monks: if a person were to gather or burn or do as he likes with the grass, twigs, branches & leaves here in Jeta’s Grove, would the thought occur to you, ‘It’s us that this person is gathering, burning, or doing with as he likes’?”
“No, lord. Why is that? Because those things are not our self, nor do they belong to our self.”
“Even so, monks, whatever isn’t yours: Let go of it. Your letting go of it will be for your long-term welfare & happiness. And what isn’t yours? Form isn’t yours… Feeling isn’t yours… Perception… Thought fabrications… Consciousness isn’t yours: Let go of it. Your letting go of it will be for your long-term welfare & happiness.
Majjhima Nikaya mn22
Alagaddupama Sutta