Expressions used in Everyday Spoken English in Social and Professional contexts
The phrase 'it serves you right' or 'it serves somebody right' means that you think the person deserved what happened to them. it is a phrase usually used as a reply to a story or anecdote in social contexts.