Neither Cardi B or Offset were in the lineup for Hot 107.9's 2018 Birthday Bash, but the couple managed to shock the crowd with a surprise performance of "MotorSport."

Wearing a tight-fitting floral-print dress, Cardi walked on stage behind Offset as the two were met with a loud reaction from the crowd. The "Be Careful" rapper quickly got to rapping her part, bouncing around on stage and letting the audience help her with the lyrics. The couple also shared a cute moment on stage, as Offset danced along with his bride-to-be and put his hand on her baby bump.

While rappers making unannounced visits to festivals is nothing new, Cardi B's appearance at the latest Hot 107.9's latest Birthday Bash comes as a major surprise because the "Bodak Yellow" artist said she would be taking a break from the stage due to her pregnancy.

In April, Cardi revealed Broccoli Fest in Washington, D.C. would be her last performance for a few months."Broccoli Fest will be my last performance for a little while and everything," she said.

"Because you know, shorty keep growing and it's just know, I be looking like I be moving and everything, but in reality, a bitch barely can breathe," Cardi added. "I wanna thank y'all for understanding."

Cardi was also recently replaced in the lineup for the upcoming Panorama festival in New York City. Originally set to perform on July 28 at Randall's Island Park, Bardi will now be replaced by Lil Wayne.

Check out footage of Cardi B and Offset performing "MotorSport" below.

See 46 Hip-Hop Artists Who've Gone Gold in 2018

More From XXL