When things like this happen i sometimes look at the woman and wonder what they may have done to contribute to it
Typically if a man is around his child for 3 years and had time to bond with said child it's unlikely that they will abandon the child once their relationship with the mother falls apart.
At least that's what I would like to think.

Some women are scorned and use children as a weapon on some "well if i aint good enough for you then you aint good enough for my baby" type sh!t. Not saying thats always the case but It's worth looking into the womans part when a man abandons a child they bonded with