You searched for: “docendo discimus
Docendo discimus. (Latin)
Translation: "We learn by teaching."

A maxim that is obvious to good teachers and which leads to Doce ut discas, "Teach in order to learn."