In the book of Isaiah, God gives a comforting message to a desolate, barren woman. She has never been able to have children, but God says now she will have children. You can tell she still doesn’t have a husband, though. After this woman has children, God contrasts her with a woman who does have a husband, making it clear that the first woman does not.
But then God says he is the desolate woman’s husband. So she does have a husband.