A Kuwaiti man was sentenced to 10 years in prison yesterday after he was convicted of endangering state security by insulting Prophet Mohammad and the Sunni Muslim rulers of Saudi Arabia and Bahrain on social media.

Shia Muslim Hamad Al Naqi pleaded innocent at the start of the trial last month, saying he did not post the messages and that his Twitter account had been hacked. The written verdict, delivered by Judge Hisham Abdullah, found Naqi guilty of all charges, a court secretary said. The sentence was the maximum that 26-year-old Naqi could have received, his lawyer Khaled Al Shatti said.

The judge found him guilty of insulting the Prophet, his wife and companions, mocking Islam, provoking sectarian tensions, insulting the rulers of Saudi Arabia and Bahrain and misusing his mobile phone to spread the comments. "The prison sentence is long but we have the chance to appeal," Shatti said.

Under Kuwaiti law, the defence can file an appeal within 20 days of the verdict and jail sentences have been reduced in the past for similar convictions. The civil plaintiff arguing the case against Naqi, as well as some Kuwaiti politicians, had called for Naqi to be executed in a case that stoked sectarian tensions in the Gulf state.

"This verdict is a deterrent to those who insult Prophet Mohammad, his companions and the mothers of the believers," civil plaintiff Dowaem Al Mowazry said in a text message.

He had argued in court that Naqi must be made an example of. Dozens of Sunni Muslim activists and lawmakers protested against Naqi shortly after his arrest and he was attacked in jail by a fellow inmate, according to the Interior Ministry.