1 Corinthians 10:1-13 (CSB)

Now I do not want you to be unaware, brothers and sisters, that our ancestors were all under the cloud, all passed through the sea, and all were baptized into Moses in the cloud and in the sea. They all ate the same spiritual food, and all drank the same spiritual drink. For they drank from the spiritual rock that followed them, and that rock was Christ. Nevertheless God was not pleased with most of them, since they were struck down in the wilderness.

Now these things took place as examples for us, so that we will not desire evil things as they did.[a] Don’t become idolaters as some of them were; as it is written, The people sat down to eat and drink, and got up to party.[b][c] Let us not commit sexual immorality as some of them did,[d] and in a single day twenty-three thousand people died. Let us not test Christ as some of them did[e] and were destroyed by snakes. 10 And don’t complain as some of them did,[f] and were killed by the destroyer.[g] 11 These things happened to them as examples, and they were written for our instruction, on whom the ends of the ages[h] have come. 12 So, whoever thinks he stands must be careful not to fall. 13 No temptation has come upon you except what is common to humanity. But God is faithful; he will not allow you to be tempted beyond what you are able, but with the temptation he will also provide a way out so that you may be able to bear it.