Jennifer Lopez is staying strong amid heartbreak.
Just two days after news broke that the "Ain't Your Mama" singer reportedly called it quits with her longtime boyfriend, Beau Casper Smart, the pop diva took to Instagram to share a telling message.
WATCH: Jennifer Lopez Hangs Out With Casper Smart and Ex-Husband Marc Anthony in Vegas
Wearing her Shades of Blue character's signature pantsuit and black heels, Lopez fiercely looks into the camera while standing next to artwork painted on a sidewalk in New York City. "Protect Yo Heart" the black-and-red graffiti reads.
"@egt239 I think this is what you meant to post… Ha," Lopez, who portrays detective Harlee Santos on the crime series, captioned the photo. "#protectyourheart."
The 47-year-old actress was jokingly calling out her producing partner, Elaine Goldsmith Thomas, who posted the same photo to her own account, but accidentally cropped part of Lopez's head and the word "protect."
WATCH: Jennifer Lopez Says She's Had 5 'Amazing Proposals'
"Queens Logic," Thomas captioned her snapshot. "#shadesofblue @jlo #protectyoheart."
Lopez and Smart first sparked romance rumors in late 2011. They called it quits in June 2014, but reunited again in January 2015.
The on-again, off-again couple recently hung out backstage at Lopez's All I Have show at Planet Hollywood Resort & Casino in Las Vegas earlier this month. A week later, the 29-year-old choreographer announced via Instagram that he was going to be taking a break from social media. Meanwhile, Lopez headed to the Big Apple to return to the Shades of Blue set.
WATCH: Jennifer Lopez and Longtime Boyfriend Casper Smart Reportedly Split
"New experiment," Smart wrote. "Gonna try to live old school for a little while. Going back to a time before social media. Gonna focus on personal connections over a type and text existence."
Hear more on what led to their breakup in the video below.