Jennifer Lopez posts "protect your heart" pic following Casper Smart split

Host Jennifer Lopez speaks onstage during the 2015 American Music Awards at Microsoft Theater on November 22, 2015 in Los Angeles.

Kevin Winter/Getty Images

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.

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.”

@egt239 i think this is what you meant to post... Ha. #protectyourheart #shadesofblue #setlife

A photo posted by Jennifer Lopez (@jlo) on

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.”

“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.

“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.”