Robert A. Heinlein said this quote

His older self had taught his younger self a language which the older self knew because the younger self, after being taught, grew up to be the older self and was, therefore, capable of teaching.