Pink Floyd release first new song since 1994 for Ukraine
Stay tuned with 24 News HD Android App
"Hey, Hey, Rise-Up!" will be released on Friday, and be used to raise funds for humanitarian causes linked to the war.
It samples Andriy Khlyvnyuk, from one of Ukraine's biggest bands BoomBox, singing in Sofiyskaya Square in Kyiv in a clip that went viral.
Khlyvnyukh abandoned a world tour to return to Ukraine and help defend his country.
"We, like so many, have been feeling the fury and the frustration of this vile act of an independent, peaceful democratic country being invaded and having its people murdered by one of the world's major powers," Pink Floyd said on their official Twitter feed.
He was able to speak with Khlyvnyuk from his hospital bed in Kyiv, where the singer was recovering after being hit by shrapnel in a mortar attack, the record company said.
"I played him a little bit of the song down the phone line and he gave me his blessing. We both hope to do something together in person in the future," Gilmour said.
The image accompanying the song is of a sunflower, and was inspired by a viral video showing a Ukrainian woman insulting two armed Russian soldiers.
In it, she tells the soldiers: "Take these seeds and put them in your pockets. That way sunflowers will grow when you all rest here."
Gilmour tweeted his opposition to the war soon after Russia's invasion, saying: "Putin must go".
The band has also pulled their music from Russian and Belarusian streaming sites in protest at the invasion.