Numbers 14:2

14:2 And all the Israelites murmured against Moses and Aaron, and the whole congregation said to them, “If only we had died in the land of Egypt, or if only we had perished in this wilderness!

Numbers 14:27-30

14:27 “How long must I bear with this evil congregation that murmurs against me? I have heard the complaints of the Israelites that they murmured against me. 14:28 Say to them, ‘As I live, says the Lord, I will surely do to you just what you have spoken in my hearing. 14:29 Your dead bodies will fall in this wilderness – all those of you who were numbered, according to your full number, from twenty years old and upward, who have murmured against me. 14:30 You will by no means enter into the land where I swore to settle you. The only exceptions are Caleb son of Jephunneh and Joshua son of Nun.