The song was produced by Ariana Grande's friend Tommy "TBHits" Brown, who has worked with the songstress since her 2013 debut, Yours Truly
. He told Billboard
the track originated with Grande telling him that she wanted "to talk about this specific subject. This is what I'm feeling at the moment."
TBHits started playing the chords and he, Grande and their regular collaborator Victoria Monét put the record together. He added: "She was just so happy, and I knew what the song was about. I knew the song was about him. I didn't know she would title the song that, but that's incredible."