Before leaving the hospital on Sunday, the 88-year-old pope smiled and waved at well-wishers gathered outside.