(CNN) Rep. Ilhan Omar posted a photo Thursday of herself and Speaker Nancy Pelosi in Ghana, saying Pelosi "didn't just make arrangements to send me back, she went back with me" two weeks after the crowd at a Trump rally erupted in cheers of "send her back."

"So grateful for the honor to return to Mother Africa," Omar tweeted of the trip. She and Pelosi are visiting as part of a trip that several members of the Congressional Black Caucus took to pay homage to the 400th anniversary of American slave trade.

They said "send her back" but Speaker @SpeakerPelosi didn't just make arrangements to send me back, she went back with me ✊🏽



So grateful for the honor to return to Mother Africa with the @TheBlackCaucus and commemorate The Year of Return! #Doorofreturn #Ghana pic.twitter.com/0yVBLcAEs5 — Ilhan Omar (@IlhanMN) August 1, 2019

Last month, President Donald Trump -- in racist language that was later condemned by a House resolution -- told four progressive Democratic congresswomen of color to "go back and help fix the totally broken and crime infested places from which they came." Three of the four were born in the US, and Omar is a naturalized US citizen.

After Trump's tweets, the crowd at a rally in Greenville, North Carolina, broke into chants of "send her back," and Trump made no effort to stop the chant.

The progressive lawmaker was born in Somalia but came to the US as a refugee in 2000 and became an American citizen when she was 17, according to the New York Times.

Read More