The icon was a producer on her 1989 album 'Like a Prayer'

By Breanne L. Heldman
Updated April 21, 2016 at 07:46 PM EDT
Kevin Mazur/Getty Images for Live Nation, Richard E. Aaron/Redferns)

Madonna and Prince may not have always gotten along, but there’s no doubt she’s in mourning over the icon’s death at age 57.

“He Changed The World!! A True Visionary. What a loss. I’m Devastated,” she wrote on Instagram alongside a throwback photo of the pair of them wearing matching yellow outfits.

Prince helped produce Madonna’s hit 1989 album Like a Prayer, and even dueted with her for the track “Love Song.” They also reportedly dated very briefly in 1985.

In 1994, Madonna famously called Prince a “little troll” and sniped about his eating habits. Years later, during a 2007 concert, Prince quipped, “I got so many hits y’all can’t handle me. I got more hits than Madonna’s got kids.” But in 2011, things seemed copacetic between the famous musicians when Prince gave Madge a shout-out during a concert she attended.

Just last October, Madonna attended a late Thursday night jam session at Paisley Park in Minnesota, where Prince was found dead earlier on Thursday.