1 Corinthians 10:6

6 Now these things occurred as examples to keep us from setting our hearts on evil things as they did.

Read 1 Corinthians 10:6 Using Other Translations

Now these things were our examples, to the intent we should not lust after evil things, as they also lusted.
Now these things took place as examples for us, that we might not desire evil as they did.
These things happened as a warning to us, so that we would not crave evil things as they did,