"Thanks to everyone who helped make it happen!" Madonna wrote on her Facebook page.
The singer bought the painting at a Sotheby's auction for $3.4 million in 1990. Proceeds from Tuesday's sale will go to Madonna's Ray of Light Foundation, which supports girls' education projects in Afghanistan, Pakistan and other countries, E! News said.
Celebrity Breakups and divorces of 2014 [PHOTOS]