Former "19 Kids and Counting" star Josh Duggar confessed via the official Duggar family website on Thursday to cheating on his wife, Anna Duggar, after reports surfaced that he paid for an account on the recently hacked Ashley Madison website where users seek out extramarital affairs.

Jim Bob and Michelle Duggar prefaced his confession on their family website.

"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," they wrote.

Following their introduction, Josh wrote, "I have been the biggest hypocrite ever. 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."

Josh also said in the statement that he's very ashamed of the double life that he has been living. He feels remorse for the hurt, disgrace and pain that his sinning has "caused my wife and family, and most of all Jesus and all those who profess faith in Him."

He apologized for breaking the trust of his wife, his family and the loyal fans of TLC network's canceled "19 Kids and Counting" reality TV show.

"The last few years, while publicly stating I was fighting against immorality in our country, I was hiding my own personal failings," he wrote.

"I humbly ask for your forgiveness. Please pray for my precious wife Anna and our family during this time."

Chris Geidner from Buzzfeed pointed out on Twitter that Josh edited his apology.

"The statement is more direct as to the cheating. Original: 'I became unfaithful to my wife.' Now: 'I have been unfaithful to my wife.'"

The new version of the statement also omitted his confession about his problems with pornography. The edited apology can be viewed on the Duggar Family website.

On Wednesday, it was reported reported the hack of Ashley Madison's servers showed Josh paid $986.76 for two separate monthly subscriptions from February 2013 to May 2015 for the purpose of cheating on his wife.

Reuters reports hackers infiltrated the Ashley Madison site last month and, as threatened, leaked user identification, credit card information, nude photos, sexual fantasies and more for an estimated 37 million customers worldwide.