One thing you could try is to have a conversation with your friend about it. And then just tell your husband about the conversation. Include why it is upsetting to you that your friend is saying these things to you. In that way, you are communicating all this to your husband without making it about him. Might be effective, I don't know. I'm not married, so I have no idea how these things work.