Needing help, husband needs to find himself

So we found out we were pregnant a month or so ago and he is not saying he needs to go find himself, that he isnt where he wants to be in life and all his friends from high schoolsdo all these fun things still and he thinks he has lost his spark in life. He says he doesnt want a baby yet and that basically he feels his life is ending and he isnt where he wants to be. So he left.

I think he is going threw a depression and doesnt realize that i can help him and he doesn't need to leave. That his family is where he belongs. He said i may be right but only time will tell. Im scarred of how much time this is gonna take. Im hoping he realizes that he misses me and this is just part of growing up. Has anyone gone threw anything like this and it been okay?