Eat one`s words

To admit being wrong in something that one has said.

The worker was forced to eat his words after his boss proved that he was wrong.