Take a dig at (someone)

To criticize someone, to say something that will irritate someone.

The man is always taking a dig at his wife.