Stranger called me ugly

I was out with my friends and this group of guys asked us for a cigarette. I said no, and his friend just said ”didn’t ask you, ugly.” I was so shocked I just kept walking and didn’t say anything back. I know its stupid but I don’t want to leave the house anymore bc I’m scared of something like this happening again.