I don't think there's a colloquial expression that exactly captures the situation you described in the comments.
I understand that to be:
Person A is angry at Person B. Person A starts saying bad things about Person B to Person C, with the intention of provoking them.
The closest thing I can think of is that we'd call something like that
Passive-aggressive behavior
Whereby you are not directly attacking a person, but doing things to intentionally upset them. It covers a broad variety of behaviors, not just this. For example, if I were upset with a work colleague, and I ignore their requests for important work documents. I am not doing anything to them, but my passive behavior is aggressively hurting them.
So in your example, I would say that you were
"Being passive-aggressive to Hannah"