Miley Cyruscan count onCody Simpson.

The “Slide Away” singer, 26, is currently recovering at home alongside the Australian singer, 22, afterundergoing vocal cord surgery, a source tells PEOPLE.

“The surgery went well and she is resting up at home now,” the source says, noting that Cyrus “has known for a while that she needed the surgery.”

Part of Cyrus’ recovery will include resting “her voice for several weeks while her vocal cords heal,” the source adds. “Any strain will prolong the healing.”

Cody Simpson/Instagram

Cody Simpson and Miley Cyrus

In addition to sharing a clip of the pairdancing togetherafter Cyrus’ brother Braison Cyrus’ wedding last week, Simpson appeared to make a reference to the surgery, sharing a black-and-white photo of the pair alongside the word “success.”

Cody Simpson and Miley Cyrus.Miley Cyrus / Instagram

Miley Cody

Multiple sources confirmed to PEOPLE on Saturday that Cyrus had left the hospital following her surgery.

When Cyrus was hospitalized for tonsillitis last month, she discovered a separate issue with her vocal cords, which she had unknowingly had for years, according to sources. After learning of the issue, Cyrus was told she would need to have surgery before the end of the year, and that the recovery process would includeseveral weeks of silence.

As a result of the issue, Cyrus, who has been working on new music, has needed to put recording and performing on hold.

Another source close to Cyrus told PEOPLE she is “doing great and will be back and better than ever early next year.”

Miley Cyrus/Instagram

Miley Cyrus

Nearly three weeks earlier, Cyrus shared that she hadtaken a breakfrom singing.

“On vocal rest not body,” said the singer.

RELATED VIDEO: Cody Simpson Says He’s ‘4 Months Sober’ But ‘Still Stoned’ Amid His Romance with Miley Cyrus

Although Cyrus and Simpson’s relationship may be new, the pair were friends for years before romance bloomed.

“It is early, but their friendship is long-standing and deeper than people realize,” Simpson’s manager previously Matt Zeidmantold PEOPLEexclusively. “Though they originally met during their own wilder phases, they’reboth sober nowand are focused on health, work and spending time together. Seems pretty ideal to me.”

Cody Simpson Instagram

Cody Simpson Instagram

Last month, Cyrus’ momTishleft a sweet comment on a post that Simpson’s mother had shared about the couple.“Puts a smile on my face too @angiemsimpson love you my sweet friend,” she wrote.

source: people.com