Is god speaking to me? Or am I going crazy

So I’ve been in this toxic friendgroup was about 4 years and it’s seriously not a good influence on me... my toxic friendgroup and I have been texting on messenger apps for a long time now and I’ve been trying to cut them off but It just seems like I can’t until 2 weeks ago.... I was on my phone and about to text them but then I had this weird voice in my head telling me all about my future and how if I keep talking to them it’s going to effect me... that night I had a dream and it was a voice that sounded almost like it was from god that told me to never talk to them ever again... and just last night I had another dream explaining what would happen for one last time... HELP! Am I going crazy or is this a spirit/god talking to me?