You need to regain your friend's trust again through your actions instead of words. Treat your friend with respect and avoid badmouthing others in the future in addition to your friend. This will help show that you are trustworthy.