The 'Till The World Ends' star is said to have given Gomez a track titled 'Whiplash', reports MTV.
The song is expected to appear on Gomez's upcoming album, the follow-up to 2010's A Year Without Rain, which is due to be released in June.
The Wizards of Waverly Place actress recently revealed plans to perform a Britney tribute on her tour after admitting to being "obsessed" with her work.
Spears was previously branded "a puppet" by her close friend, who claimed that the star had no interest in making music.
Watch Britney Spears's video for 'Till The World Ends' below: