Eat one’s words
To take something back, to retract, recant or apologise for what one may have said is an expression that dates from the late 1500s.