Former President Jimmy Carter said Sunday that an MRI scan earlier in the week showed his cancer is gone.

Carter, 91, announced the good news to attendees of a Sunday school class he often teaches at Maranatha Baptist Church in Plains, Georgia.

"When I went (for an MRI) this week they didn’t find any cancer at all," Carter said to gasps and applause. "So I have good news. So a lot of people prayed for me, and I appreciate that."

The Carter Center later put out a statement on his behalf saying: "My most recent MRI brain scan did not reveal any signs of the original cancer spots nor any new ones. I will continue to receive regular 3-week immunotherapy treatments of pembrolizumab."

Related: Jimmy Carter Is Trying a Brand-New Drug to Fight His Cancer

Carter revealed in August that he would undergo radiation treatment for several melanoma spots on his brain and liver after he learned a mass removed from his liver was melanoma. Later in August, Carter began a new drug, known as Keytruda, that had proved promising in other patients. "I'll be prepared for anything that comes," he said at the time.

Congratulations to former president Jimmy Carter on being cancer free! pic.twitter.com/z6ALthUHER — The Democrats (@TheDemocrats) December 6, 2015

Last month, the 39th president said he was feeling well, and tests showed the cancer had not spread any further, the Carter Center, a nonprofit organization he set up after leaving the presidency, said in a statement.

Carter has stayed active during his treatment. He taught his Sunday school class days after announcing his diagnosis and even spent time building houses with Habitat for Humanity, an organization that he has worked closely with since 1984.