Former president Jimmy Carter and a volunteer help build stairs for a Habitat for Humanity project in Edmonton, Alberta, on July 11. (Jason Franson/The Canadian Press via AP)

Former president Jimmy Carter was discharged from a Canadian hospital Friday, a day after he received treatment for dehydration, a spokesman said.

The 92-year-old was taken to a Winnipeg hospital Thursday after he collapsed while helping to build a Habitat for Humanity home, according to Canadian Broadcasting Corp. (CBC) News.

“He and Mrs. Carter extend their appreciation for the many well-wishes he received worldwide,” Carter Center spokeswoman Deanna Congileo said Friday in a statement. The Associated Press said Carter made an appearance at the final day of a four-day mission to build or repair as many as 100 homes across Canada.

As a precaution, Carter was transported to St. Boniface General Hospital for rehydration, along with former first lady Rosalynn Carter, the center said.

Jimmy and Rosalynn Carter are the organization’s most prominent supporters and since 1984 have built, renovated or repaired almost 4,000 homes globally, according to the nonprofit’s website.

Carter described a rising concern over housing costs in Canada as a reason to get involved.

“Housing affordability in Canada is at an all-time low. We are proud supporters of Habitat for Humanity and grateful to everyone who is joining us in our efforts to bring affordable housing to families across the country,” Carter said.

Carter announced in 2015 that he was free of a type of melanoma that spread across his brain.

Read more:

The faith of Jimmy Carter

‘Y’all see why I voted for him?’: Jimmy Carter says he was a Bernie Sanders supporter

A brief history of times that observers marveled at the president acting like a president