A phrase people use when they make a mistake or do something wrong. It is showing that you did not mean to do anything wrong.
Person 1: "I can't believe you broke my vase! It was an expensive antique!"
Person 2: "im sorry.."
Person 1: "You should be ashamed of yourself!"
Person 2: :(