In this photo released by Brazil’s Presidential Press Office, President Jair Bolsonaro arrives at the Brasilia Air Base, in Brasilia, Brazil, Wednesday, Feb. 13, 2019. President Bolsonaro has been released from a hospital after 17 days of treatment related to a stabbing he suffered during the campaign. (Marcos Correa/Brazil’s Presidency/Associated Press)

RIO DE JANEIRO — Brazil’s president has been released from a hospital after 17 days of treatment related to a stabbing he suffered during the campaign.

Government spokesperson Otavio Rego Barros said Wednesday the Albert Einstein Hospital in Sao Paulo had given the green light for the president to leave his hospital room. Television images showed him walking to his plane without trouble, accompanied by his wife.

Bolsonaro has been working from hospital after undergoing a colostomy reversal surgery on Jan. 28.

The 63-year-old president suffered serious internal bleeding and nearly died on Sept. 6 after he was stabbed in the abdomen at a campaign rally in the city of Juiz de Fora.

Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.