Aesop said this quote

Better be wise by the misfortunes of others than by your own.