give somebody/yourself a pat on the back
give (oneself or someone) a pat on the back
To give oneself or someone else praise or recognition for an achievement or a job well done. Treating his daughter to ice cream was Joe's way of giving her a pat on the back after she won first place in the science fair. During the meeting today, Pat gave herself a pat on the back for staying late last week.