(CNN) — Selena Gomez revealed on Thursday that she received a kidney transplant from her BFF.

The singer posted a photo on Instagram that shows her and fellow actress Francia Raisa holding hands across their hospital beds.

“I’m very aware some of my fans had noticed I was laying low for part of the summer and questioning why I wasn’t promoting my new music, which I was extremely proud of,” Gomez wrote in the caption.” “So I found out I needed to get a kidney transplant due to my Lupus and was recovering.”

Gomez revealed her Lupus diagnosis in 2015 and last year took some time off as she struggled with the disease as well as anxiety and depression.

The superstar said the transplant was “what I needed to do for my overall health.”

[protected-iframe id=”eb685583efac0a5adb2691e7333455f1-110336915-112670968″ info=”//platform.instagram.com/en_US/embeds.js” class=”instagram-media”]

She said she looked forward to sharing more with her fans later about her transplant journey, but in the meantime she wanted to thank her health team and Raisa.

“She gave me the ultimate gift and sacrifice by donating her kidney to me,” Gomez said. “I am incredibly blessed. I love you so much sis.”

Raisa is an actress best known for her role as Adrian Lee on the TV series “The Secret Life of the American Teenager.”

On Thursday, Gomez fans swarmed Raisa’s latest Instragram photo to thank her for the kidney donation.

“You’re amazing,” one person commented. “You’re one hell of a friend.”

The-CNN-Wire™ & © 2024 Cable News Network, Inc., a Time Warner Company. All rights reserved.

Join our Newsletter for the latest news right to your inbox