Ms Ibrahim is to be released by Sudanese authorities after she was sentenced to death for abandoning her Islamic faith, a foreign ministry official says.

Abdullahi Alzareg, an under-secretary working at the foreign ministry stated that Sudan guaranteed religious freedom and was committed to protecting the woman.

Yesterday David Cameron, Prime Minister for the UK condemned the sentencing as 'barbaric,' in an interview to The Times newspaper. There was also international condemnation over the sentencing, with calls on the Obama administration to act on the issue.

The Sudanese government has been under great pressure in recent years to improve the image of Sudan after the war in Dafur which has plagued the country since 2003.

Ms Ibrahim was brought up an Orthodox Christian, however was considered by the court to be a Muslim as her father was a Muslim. Ms Ibrahim also gave birth to her second child to Dani Wani, a US citizen. Originally the court said that Ms Ibrahim would be allowed to nurse the child for two years until the sentence was to be carried out.

Sudan has a Muslim majority and has been under Islamic law since the 1980s. Under Islamic law the marriage between Ms Ibrahim and Dani Wani was not considered to be valid, therefore Ms Ibrahim was also sentenced to 100 lashes for adultery.

The ruling in Sudan has revived the debate over apostasy, which Ms Ibrahim was sentenced to death for. Liberal and more conservative scholars have debated on whether, and how the act of abandoning the Islamic faith should be punished.