Thank you everyone, for the possible suttas/sources.
David N. Snyder wrote:Nearest thing, but definitely not the same:
Body is not self, feelings are not self, perception is not self, mental constructs are not self and consciousness is not self…When one sees this one becomes detached from these things, being detached the passions fade, when the passions have faded one is free, and being free one knows one is free (Samyutta Nikaya 3. 66)
Bhikkhu Pesala wrote:
“Whatever consciousness, whether past, future, or present; internal or external; gross or fine; inferior or superior; far or near; should be seen with own knowledge, as it truly is, ‘This is not mine, I am not this not, this is not my self’.”
LonesomeYogurt wrote:This is almost certainly a reference to MN 37 (repeated in sutta 61 of the Anguttara's book of sevens) where Sakka asks, "In brief, how is a bhikkhu liberated in the destruction of craving? " and the Buddha replies, "A bhikkhu who has heard that nothing is worth clinging to as me, I, or mine, he directly knows all things."
Buckwheat wrote:The Buddha says he teaches only two things: Suffering and the end of suffering. As clinging to atta leads to suffering, and clear vision of anatta leads to non-suffering, the OP does not seem horribly misleading.
All of the above sayings of the Buddha are quite close to the quote in the OP. However, as David said, these still do not explicitly present sum-total of all teachings in one sentence. But as LonesomeYogurt noted it is up for debate. Among all I find Buckwheat's quote about suffering above, and David's quote
To avoid all evil, to cultivate good, and to cleanse one's mind this is the teaching of the Buddhas.
to be the closest to a one-sentence summary. But then they do not explicitly say anything about no-self (although it is implied by "cleanse one's mind", or by "suffering and the end of suffering").
LonesomeYogurt's quote from MN37 sounds to me the closest to a one-sentence summary with reference to no-self.