1 Corinthians 10:6; 1 Corinthians 10:11

6 Now these things occurred as examples to keep us from setting our hearts on evil things as they did.
11 These things happened to them as examples and were written down as warnings for us, on whom the culmination of the ages has come.