بسم الله الرحمن الرحيم
(Fatwa: 525/525/M=04/1435)
In the case mentioned in the question, both your sons will be in the custody of your mother in law (their maternal grandmother) up to 7 of their age, and you will have to pay all their expenses. After seven years, you can take them in your custody.
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband
