Meriam Yehya Ibrahim, 27, was imprisoned for not abiding by her father's religion, Islam.
Ibrahim was raised Christian like her mother after her father left when she was 6 years old.
Abdullahi Alzareg, an undersecretary at the Sudan foreign ministry, said the Sudanese government would guarantee the woman's religious freedom. She was originally sentenced to death for apostasy after a judge ruled Ibrahim should follow her father's religion.
The official said Ibrahim should be released from jail in a matter of days.
She gave birth to a daughter Tuesday in prison, where her 20-month-old son is also with her.
Celebrity Families of 2014 [PHOTOS]