They joined in worshiping the god Baal while they were at Peor,and they ate what was sacrificed to the dead.