Is this legal?

For context, I won't go into all of it but my life due to things outside my control had begun falling apart. I texted one of my friends on a night of weakness and said something to the effect of "Theoretically, if something were to happen to me, would you take in my cats?" He refused cause he knew where it was going - I'm not going to mince words here - but what followed was a failed attempt on my life and several missed calls from him. This all happened on a couple days I had off. I heard from the same friend that he'd heard they weren't going to put me on the schedule the following week, then this exchange. I can only assume it was that friend just looking out for me, as I didn't reach out to anybody else. Is this legal on their part? And, slightly unrelated, did I ever get out of line in my response? Thanks in advance, Reddit.