Artists like Britney Spears, Selena Gomez, Pink, Jennifer Lopez, Gwen Stefani, Jason Derulo and Meghan Trainor just banded together for a tribute to Orlando, in the form of the song, "Hands."

The charity single, which hit iTunes last night, pays tribute to the victims of the mass shooting at gay nightclub Pulse in Orlando last month, when 49 people were killed and 53 were left injured.

Songwriter Justin Tranter, who has written recent hits for Justin Bieber, Gomez, DNCE, Fall Out Boy and Stefani, was the motivating force behind the track.

"Like the rest of the world I woke up to the news that morning and was horrified and sad and scared," Tranter tells Billboard.

"When you hear the song it talks about hate being the driver here," GLAAD CEO, Sarah Kate Ellis, explains. "That's important because we have to be able to identify what's driving these cruel acts in order to stop them. Artists using their platforms to accelerate acceptance is very powerful."

"I'm not educated enough to speak on the political details," Tranter adds. "I'm a songwriter, not a politician. It could have been a million things but clearly, 100 percent, this was an attack on the LGBT community and people of color."

All profits from the song will aid families with medical care, counseling and education.

"We assigned everybody what we thought would be the best part for their voice," Justin adds, "and we asked them all to sing an additional part, just in case. But everybody got it done in time so we ended up with extra vocals."

Artists were recorded in their homes, local studios, touring locations, or wherever they happened to be at that moment.

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

Take a listen to the song above -- and click here to buy it on iTunes now.