Brazil great Pele was admitted to hospital for a scheduled procedure as part of his treatment for a colon tumour but he will be home in time to spend Christmas with his family, his daughter Kely Nascimento said.
Three-time World Cup winner Pele, who was admitted to Sao Paulo's Hospital Albert Einstein on Wednesday, underwent an operation to remove the tumour in September and spent nearly a month under care.
The hospital said at the time that the 81-year-old would need to undergo chemotherapy.
"In two or three days he will be back home to enjoy Christmas," his daughter said on Instagram. "This was not a surprise. It was already scheduled and is part of the treatment."
Widely considered to be one of the greatest footballers of all time, Pele has suffered from a series of health issues in recent years. Hip surgery left him with recurring pain and he cannot now walk unaided.
He appeared upbeat in videos taken during his recovery period in September and October and he said on Twitter last month that he was feeling better.
Pele won the 1958, 1962 and 1970 World Cups, and remains Brazil's all-time leading scorer with 77 goals in 92 matches.