You searched for: “aerugo animi rubigo ingenii
Aerugo animi rubigo ingenii. (Latin proverb)
The rust of the mind is the destruction of genius.

Alfred Henderson, Latin Proverbs, page 10 (1869), quoting Seneca. An equivalent English proverb: "I had rather wear out than rust out." Written by George Whitfield in his Remark (c. 1770).