The couple called it quits after about two years of on-off dating.
"I've been through a lot the past few months. It's been weird and sad and cool," UsMagazine.com reported Gomez, 20, said at a private benefit concert for UNICEF. "This song definitely speaks to me."
UsMagazine.com said Bieber has also sung the song at concerts.