humble pie, eating

(slang) admitting that one is wrong or saying that one is sorry for something that one has said or done.