Sharif's wife Kulsum Nawaz and his two sons Hassan and Hussain accompanied the Premier from the Harley Street Clinic in London to his house in the British capital.
Sharif moved to his home in Park Lane this evening after undergoing the "successful" surgery last Tuesday. "He is in good spirits with his family by his side," a source close to the family said.
The 66-year-old PML-N leader had gone to London on May 22 for a regular medical checkup but was diagnosed with a heart complication by doctors who suggested surgery.
Premier's daughter Maryam Nawaz Sharif tweeted, "Dekho, dekho kon aaya (look, look, who has come)", along with a picture of Sharif coming out of the hospital.
Earlier in the day, Maryam said, "Doctors satisfied with PM's progress and latest reports. All being well, Insha'Allah PM will be discharged this afternoon."
"PM going back home," she wrote on twitter. Yesterday, nearly a week after the Premier underwent surgery, Maryam had announced that his recovery was on track.
"PM's recovery on course. Was made to walk several times in the corridor during the day, and up and down a flight of stairs twice," Maryam tweeted. This was Sharif's second cardiac procedure in five years.
The need for the surgery arose after the Premier went through a cardiac procedure called Atrial Fibrillation Ablation in 2011, "during which certain complications occurred resulting in perforation of heart", Maryam had told the media.
Russian President Vladimir Putin and Afghan President Ashraf Ghani were among several world leaders who had wished Sharif ahead of his surgery. However, Sharif had only spoken to Prime Minister Narendra Modi before the surgery.