To serve one right

to treat, or cause to befall one, according to his deserts; - used commonly of ill deserts; as, it serves the scoundrel right.- C. Kingsley.

See also: Serve