Ibrahim Almadi (L), poses for a picture with his father, Saad, at a vacation resort in Florida on June 20, 2021
Ibrahim Almadi (L), poses for a picture with his father, Saad, at a vacation resort in Florida on June 20, 2021 AFP

A US citizen sentenced to 19 years in a Saudi prison for social media posts criticising the kingdom's rulers has been released, his son told AFP on Tuesday.

Saad Ibrahim Almadi, a 72-year-old of Saudi origin, was arrested in 2021 for what his son, Ibrahim, described as "mild" Twitter posts on topics including the war in Yemen and the 2018 killing of journalist Jamal Khashoggi.

Last October, a court handed Almadi a term of 16 years behind bars, which last month was lengthened to 19 years before his surprise release on Tuesday, Ibrahim said.

"Yes, he was freed five hours ago. He's in his Riyadh home," Ibrahim told AFP by phone from the United States.

A travel ban also imposed last year means he cannot leave the country, Ibrahim said.

Almadi's case has risked further ratcheting up tensions between Riyadh and Washington, long-time partners that have recently been at odds over issues including human rights and oil output cuts approved by the OPEC+ cartel.

The State Department said last year it had "consistently and intensively raised our concerns regarding the case at senior levels of the Saudi government", and that "exercising freedom of expression should never be criminalised".

Saudi officials have not commented on the case.

The Gulf kingdom has come under fire for what human rights groups describe as draconian sentences for social media criticism of its policies.

Ibrahim previously shared with AFP a list of Twitter posts he said had been used in evidence against his father -- information he said had been confirmed by the State Department.

They included posts on taxes as well as controversial demolition work in Mecca, the holiest city in Islam, and the Red Sea city of Jeddah.

One post questions why Saudi Arabia is unable to prevent attacks by Huthi rebels in war-wracked Yemen, where the kingdom heads a military coalition in support of the internationally recognised government.

Another refers to the "sacrifice" of Khashoggi, whose killing by Saudi agents in the kingdom's Istanbul consulate sparked global outrage.

Saudi officials also found an unflattering caricature of Crown Prince Mohammed bin Salman, the kingdom's de facto ruler, on Almadi's phone, Ibrahim said.