"to stab in the back"
"put a knife in one's back"
Example: I felt like my best friend stabbed me in the back when she told the class my secret.
If you want to make it a noun talking about a person, you can call them a "backstabber" (though its not very nice)
In another meaning, if you have a boyfriend or girlfriend that "betrays" you, meaning that they were with another man or woman, you could use the synonym "cheat on" as in
"My boyfriend cheated on me with another woman."