Work swore at me! Please help

So one my coworker swore at the other day saying

“I know what fuck I’m doing” when I ask him if he need any help because he was behind on catching up on things.Which I could get another person to help.

Which made me piss off and made me left work.

Now I have a manager which is defending his ass saying he didn’t but the whole time he was on cashier.Which told me before not till on a coworker who was sexually harassing young girls,which I just fix.

Now I’m mentally stressed out,what do I do?