Mohamed Fahmy, a journalist who was released from prison in Egypt last month, has posted on social media that he has left the country.

Fahmy posted a photo on his Twitter account Tuesday of the Canadian ambassador escorting him to the gate at Cairo airport, calling it "a glorious end to our battle for freedom."

He had posted a day earlier that his name had been removed from a no-fly list.

Fahmy was arrested in December 2013 and sentenced to three years in prison in a retrial earlier this year for airing what a court described as "false news" for Al Jazeera English. He and his colleague Baher Mohammed received a pardon last month.

Fahmy gave up his Egyptian citizenship during the trial in hopes of being deported to Canada.