Psalm 106:24-31 ESV
Then they despised the pleasant land,
having no faith in his promise.
They murmured in their tents,
and did not obey the voice of the LORD.
Therefore he raised his hand and swore to them
that he would make them fall in the wilderness,
and would make their offspring fall among the nations,
scattering them among the lands.
Then they yoked themselves to the Baal of Peor,
and ate sacrifices offered to the dead;
they provoked the LORD to anger with their deeds,
and a plague broke out among them.
Then Phinehas stood up and intervened,
and the plague was stayed.
And that was counted to him as righteousness
from generation to generation forever.
ESV: English Standard Version 2016