(CNN) Prominent Iranian human rights lawyer Nasrin Sotoudeh has been sentenced to 38 years in prison and 148 lashes, according to her family.

Sotoudeh is well known for representing human rights defenders, dissidents and women who protested against the compulsory wearing of a headscarf in Iran.

According to IRNA, Iran's state-owned news service, the human rights lawyer was convicted of "gathering and colluding to commit crimes against national security" and for "insulting the Supreme Leader".

A Facebook post by her husband Reza Khandan said the ruling sentenced her to 33 years and 148 lashes. He added that the punishment brings her prison time to 38 years. In 2016, she was sentenced in absentia to five years, according to Khandan.

But state media said that Sotoudeh was sentenced to seven years in prison, citing the judge in the case, Mohammad Moghiseh. The reasons for the discrepancy in the reports was not immediately clear.

Read More