my bf doesn’tt like my friend help

shy<3

so my friend has said some things about my bf and he was hurt by it and now he’s very controlling he doesn’t want me talking to her anymore so i have to hide me talking to her and he gets mad that i’m talking to her and he threatened to break up with me if i continued to be friends with her idk we’ve been together for almost 2 years my friend doesn’t think he’s good enough for me he isolates me from my one best friend i’m a very depressed person i need people in my life and right now i am loving with him bc it’s my only option i need help n someone to tell me i’m not in the wrong i confronted my friend and she apologized for actions she said that was never her intention she just wants her firend back and so do i yk?