Miley Cyrus. Picture: Bang Showbiz

Singer Miley Cyrus is recovering after undergoing vocal cord surgery and will have to rest her voice for a while.

According to multiple sources, the singer, 26, has left the hospital, reports people.com.

Cyrus was hospitalised for tonsillitis last month, and she discovered a separate issue with her vocal cords, which she had unknowingly had for years.

"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 include several weeks of silence," sources said.

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

Another source close to Cyrus said that she is "doing great and will be back and better than ever early next year".

On Friday, the singer's boyfriend Cody Simpson appeared to make a reference to the surgery. He shared a black-and-white photograph of the pair alongside the word "success".

The "We Can't Stop" hitmaker has been discharged after being treated for her tonsillitis last month. 

Her boyfriend Cody Simpson posted a black and white photograph of him and Miley cuddling on her Instagram story, captioning it: "She made it home. Recovering from surgery, send all the vibe$ (sic)"

Miley being discharged from hospital has just come at the right time as she had previously taken to social media to pray for a "boost of bad a**" to help her get back to full health before her scheduled appearance at the Gorillapalooza charity event. 

Nearly three weeks ago, Cyrus shared that she had taken a break from singing.

"On vocal rest, not body," said the singer, who released the song "Slide away" in August following her split from actor Liam Hemsworth.

The last time the singer performed appears to have been in September, shortly following her split from Kaitlynn Carter.