The musicians will all appear on Sheeran's "Drive," which releases in June as part of the F1 soundtrack.
"Every moment we spent together was the stuff of Old Hollywood Magic," the singer wrote of his late friend.
"Someone once said that laughter is the best medicine. It's not the best medicine, but it's a good medicine," Rogen told Billboard of fighting Alzheimer's disease with his Hilarity for Charity event.