to prevent sb having sth that they need or deserve
rob sb / sth of sth
A last - minute goal robbed the team of victory.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition