As Josh Duggar was posting a confession in which he called himself “the biggest hypocrite ever” for being unfaithful to his wife, Anna, his parents invoked the power of prayer to heal the troubled Duggar family.

“When we learned of this late last night our hearts were broken. As we continue to place our trust in God we ask for your prayers for Josh, Anna, our grandchildren and our entire family.” Josh’s parents, Jim Bob and Michelle wrote on the Duggar family website on Thursday.

“I have been the biggest hypocrite ever,” read Josh Duggar’s statement as reported Thursday by several media outlets. “While espousing faith and family values, I have secretly over the last several years been viewing pornography on the internet and this became a secret addiction and I became unfaithful to my wife.”

The initial statement was later amended. The shortened version read: “While espousing faith and family values, I have been unfaithful to my wife.”

The statement followed a data breach of customers of the Ashley Madison website, an online service that caters to men and women looking to cheat on their spouses in which Duggar’s name appeared. Duggar’s statement did not directly address whether he had used the web site, nor did he provide details of the infidelity.

Duggar’s admission comes a few months after admitting that as a teen, he molested five underage girls. Those revelations led to the cancellation of 19 Kids and Counting, the hit TLC reality show on which he appeared with his 18 siblings and his parents.

Advertisement - story continues below

“I am so ashamed of the double life that I have been living and am grieved for the hurt, pain and disgrace my sin has caused my wife and family, and most of all Jesus and all those who profess faith in Him,” Duggar said in the statement.

“The last few years, while publicly stating I was fighting against immorality in our country, I was hiding my own personal failings,” he said. “As I am learning the hard way, we have the freedom to choose our actions, but we do not get to choose our consequences. I deeply regret all hurt I have caused so many by being such a bad example.”

His statement closed with an echo of the words of his parents.

“I humbly ask for your forgiveness. Please pray for my precious wife Anna and our family during this time,” his statement said.

In May, when Josh Duggar’s troubles were beginning, his parents shared this message with their fans: “We pray that as people watch our lives they see that we are not a perfect family. We have challenges and struggles every day…We hope somehow the story of our journey — the good times and the difficult times — cause you to see the kindness of God and learn that He can bring you through anything.”