rap somebody over the knuckles

ˌrap somebody over the ˈknuckles

,

give somebody, get, etc. a ˌrap over the ˈknuckles

(informal) criticize somebody/be criticized for doing something wrong: He got a rap over the knuckles for spending too much money on his business lunches.
See also: knuckle, over, rap, somebody