My husband told me he’s only staying with me bc of our son

We were arguing about something and my husband said he felt like I only care about our son now (our baby is 3 months old). I reassured him and ended up saying I would never leave him (my husband) and we’re not getting divorced. I was rubbing his back trying to reassure him. He then said ‘I wouldn’t give a shit if you wanted to divorce me, I could find someone else. You could stop loving me at any point, but you have to think about what’s best for him at this point’

He’s never told me anything like this before and now I feel like he’s only staying with me for the sake of our son. Like he doesn’t love or even like me but he feels our son needs two parents. Our relationship has been good but the first few weeks postpartum it was pretty tense.

What would you think if your husband said this to you? I feel really devastated hearing this.

Edit- he just came over to me and said it’s not what he intended to say. He just meant that we have to think about how our actions effect our son. And that of course he would be upset if we divorced. I don’t really buy it..

Another edit- I’m only 3 months postpartum and I’m cooking 2-3 meals/day for him, doing all of the shopping, cleaning and most of the baby care. We’re also back to having sex. And I went with him multiple times to his family’s vacation house so we could spend the weekend with his family. All with a newborn baby. Got him a nice birthday present for his guitar which I sit and listen to him use pretty often. So it’s not like I’ve disappeared. I’ve been trying very hard to make him feel noticed and loved. To say I was shocked by what he said is an understatement