理屈じゃ覚えにくいので例文を読んで体で覚えよ。
deprive A of B「AからBを奪う」
The storm deprived us of electricity for several days. (その嵐は私たちに数日間電気を奪いました。)
Losing her job deprived her of financial stability. (仕事を失うことで彼女は経済的な安定を失いました。)
The illness deprived him of his sense of taste and smell. (その病気は彼に味覚と嗅覚を奪いました。)
Being late to the meeting deprived me of the opportunity to present my ideas. (ミーティングに遅れることで、私はアイデアを発表する機会を逃しました。)
The pandemic has deprived many people of their social interactions. (パンデミックは多くの人々に社会的な交流を奪いました。)
rob A of B「AからBを奪う」
A thief robbed the bank of a large sum of money last night. (昨夜、泥棒がその銀行から大金を奪いました。)
She was robbed of her wallet while shopping in the crowded market. (混雑した市場で買い物をしている最中に、彼女は財布を奪われました。)
The earthquake robbed many families of their homes and belongings. (その地震は多くの家族から家と財産を奪いました。)
The pickpocket tried to rob me of my phone, but I caught him in the act. (そのすりは私から携帯電話を奪おうとしましたが、私はその行為を見破りました。)
The storm robbed the town of its electricity for several days. (その嵐はその町から数日間電気を奪いました。)