The music is based on ABBA's "Gimme! Gimme! Gimme! (A Man After Midnight)
." Madonna wrote to ABBA members Bjorn Ulvaeus and Benny Andersson personally to get their permission to use the sample. This was the second time ABBA had granted such a request. Previously, Fugees were given permission to sample the bass and synthesizer from this for their 1997 hit "Rumble In The Jungle."
Bjorn Ulvaaeus explained to the Sunday Telegraph
how they granted permission to the Queen of Pop: "Madonna wrote a very, very nice letter saying please, please we have had a wonderful idea which involves 'Gimme Gimme.' We said we would have to listen to it first, but after half a minute I knew it was brilliant. That is one of the few we have allowed. Five years earlier we said yes to the Fugees. But to everyone else we said no. I think the Madonna record shows that ABBA is part of the DNA set-up of pop."