They spoke against God and Moses. Their consequence was death. Those still living confessed, “We have sinned; we spoke against the Lord and against you. Pray for us.” So Moses prayed and God told him how to help (from Numbers 21:5-9).
And as Moses lifted up the serpent in the wilderness, so must the Son of Man be lifted up, that whoever believes in him may have eternal life (John 3:14-15).
Sin, consequence and confession are part of every salvation story.
Spend time in the Lord’s presence praying for yourself.
Create in me a clean heart, O God, and renew a right spirit within me. Cast me not away from your presence, and take not your Holy Spirit from me. Restore to me the joy of your salvation, and uphold me with a willing spirit. Then I will teach transgressors your ways, and sinners will return to you. (Psalm 51:10-13 bold mine)