“Those who cannot remember the past are condemned to repeat it.”
In other words, studying history is necessary to avoid repeating past mistakes.
That saying comes from the writings of George Santayana, a Spanish-born American author of the late 19th and early 20th centuries.