The movie explores the often-unpredictable bond between the three main characters and how it intersects with their joint passion for professional tennis
"I Don't Wanna Live Forever" will feature in the sequel to the "Fifty Shades of Grey" film, based on the hugely successful erotic trilogy by EL James.
Grammy Award winning Swift told her fans of the collaboration on Instagram on Friday, posting a picture of what appeared to be the single cover and a message reading "Z T 50".
Malik, who quit the chart-topping boy band One Direction last year, posted a picture of himself with Swift with the hashtag #idontwannaliveforever.
"Fifty Shades Darker", starring Jamie Dornan and Dakota Johnson, is scheduled for release in February.