Words can hurt and they damage a relationship severely. It is hard to take back what you say as the person will now remember every bit of it. But in order to make amends, you need to apologize sincerely. Show them that you regretted saying whatever you said and truly hope they will forgive you.