It's a pretty tough option. The question of whether the family comes first or the spouse depends a little on the character, a little on the experience...
Under normal circumstances, everyone should say their family first. Usually, it is the family that brings people up to a certain age. After getting comfortable with the spouse, the person starts to live. However, he lives the most mature period of his life with his wife. After the spouse has a child, the bond with the spouse becomes stronger. At that time, he becomes more attached to his wife because he is away with his family.
In this case, it would not be right to choose between the two. It's a pretty tough choice. On the one hand, it is your spouse who has grown you and formed you to a certain maturity, and on the other hand, you spend your life with. Your child's mother/father.