1 Corinthians 10:6-8 New International Version (NIV)

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

7. Do not be idolaters, as some of them were; as it is written: “The people sat down to eat and drink and got up to indulge in revelry.”

8. We should not commit sexual immorality, as some of them did—and in one day twenty-three thousand of them died.

1 Corinthians 10