Polybius said this quote

But all historians, one may say without exception, and in no half-hearted manner, but making this the beginning and end of their labour, have impressed on us that the soundest education and training for a life of active politics is the study of History, and that surest and indeed the only method of learning how to bear bravely the vicissitudes of fortune, is to recall the calamities of others.