(CNN) The Texas Judicial Commission is issuing a public warning to a judge who told a jury that God wanted to acquit a woman who was on trial for charges related to sex trafficking.

The jury found her guilty instead, and Gloria Romero Perez was sentenced to 25 years in prison. The judge, Jack Robison, is on the other end of a disciplinary measure.

Robison, a district judge in Comal County, Texas, just north of San Antonio, was presiding over Perez's trial in January 2018. According to the Texas Judicial Commission, he walked into the jury room after the jury's deliberations, said he had been praying about the case, and informed the jurors God told him the defendant was innocent.

He asked the jury to reverse its guilty verdict. Jurors declined.

The Texas Judicial Commission's ruling said it received 18 complaints about Robison's conduct from sources, including jurors, the district attorney's office and concerned citizens who heard about his comments through media reports.

Read More