Britney Spears has teamed up with Jennifer Lopez, Selena Gomez, Pink and more to honor the 49 people who died and the 53 injured in the June 12 mass shooting at Pulse nightclub in Orlando by recording a new song called "Hands."

In addition to Spears, Lopez, Gomez and Pink, 20 other famous singers lent their voices to the important project. Mary J. Blige, Gwen Stefani, Jason Derulo, Troye Sivan, Meghan Trainor, Juanes, Halsey, Dan Reynolds of Imagine Dragons, Adam Lambert, Ty Herndon, MNEK, Jussie Smollet, Alex Newell, Mary Lambert, Prince Royce, Nate Ruess, RuPaul and the Trans Chorus of Los Angeles all sing on the track.

“Hands,” was cowritten and coproduced by Justin Tranter, who Gomez’s “Hands to Myself” and Justin Bieber’s “Sorry.”

On Wednesday, Tranter spoke with Billboard about what inspired him to write the song.

"Like the rest of the world, I woke up to the news that morning and was horrified and sad and scared," said the 36-year-old LGBT advocate. He also explained that he reached out to famous friends to help with the project, which benefits the Equality Florida Pulse Victims Fund, the GLBT Community Center of Central Florida and GLAAD.

The songwriter also explained that while all of the famous names have come together for one song, they weren't all in one location. He explained that some of the singers recorded from their homes, tour buses and other various locations.

"Mary J. Blige recorded in New Orleans. Britney Spears in Thousand Oaks, I think. Pink in Santa Barbara. MNEK recorded at home in London," he explained. “Selena recorded in her studio bus. Dan Reynolds recorded in his home. Adam Lambert was in Luxembourg. Ty Herndon, the country star, was in Spain. Kacey Musgraves, Nashville. Everyone just got it done."

We're glad they did!