Donald Trump’s old tweets keep coming back to haunt him. This time, they followed him to Saudi Arabia, during his first trip overseas as president of the United States.

In 2015, half a year before he announced he was running for president, Trump criticized then-first lady Michelle Obama for not wearing a headscarf over her hair during a trip to Saudi Arabia. The Saudis “were insulted,” Trump tweeted. “We have enuf [sic] enemies.”

Many people are saying it was wonderful that Mrs. Obama refused to wear a scarf in Saudi Arabia, but they were insulted.We have enuf enemies — Donald J. Trump (@realDonaldTrump) January 29, 2015

But when Trump and his family visited the Islamic nation this weekend, people noticed that his wife, Melania, and his elder daughter, Ivanka, did the exact same thing.

Melania Trump wore loose-fitting conservative outfits to the Islamic nation, much like Obama did during her 2015 trip to Saudi Arabia. Trump was seen wearing a black Stella McCartney jumpsuit that covered most of her arms and legs, and she accentuated the outfit with a gold belt and chain-link necklace. Ivanka Trump wore a long-sleeved floral dress that ended above the ankles.

MANDEL NGAN via Getty Images U.S. President Donald Trump, first lady Melania Trump and Saudi Arabia's King Salman bin Abdulaziz al-Saud, at right, look at Saudi modern art at the Saudi Royal Court in Riyadh.

MANDEL NGAN via Getty Images Ivanka Trump and Jared Kushner arrive to attend the presentation of the Order of Abdulaziz al-Saud medal at the Saudi Royal Court in Riyadh on Saturday.

Once photos of the Trumps in Saudi Arabia surfaced online, people were quick to dig up the president’s old tweet and point out his hypocrisy.

@FXHex @lee_manel @realDonaldTrump Visiting women in Saudi Arabia are never expected to cover their heads but Turnip was too stupid and racist to know that in 2015. — Copperbird (@copperbird7) May 20, 2017

Saudi Arabia has a strict dress code that requires Saudi women to wear long black robes, known as abayas, and to cover their hair in public. However, foreign diplomats and politicians aren’t required to cover their hair during visits to the country.

Middle East politics expert Christopher Davidson told NBC News that it’s “perfectly tasteful and appropriate” for prominent women, including the Trumps and Michelle Obama, to forego headscarves during their visits to the kingdom.

“We’ve now had a number of prominent Western women who have visited Saudi in recent months, Angela Merkel and Theresa May,” Davidson said. “Neither of them covered their hair and they both wore trouser suits.”

Journalist Joyce Karam also pointed out that several other first ladies and female American politicians have visited the country sans headscarves in the past, including Hillary Clinton, Barbara Bush and Laura Bush. (In fact, Laura Bush briefly wore a headscarf, which was given to her as a gift, during a trip to Saudi Arabia, but she did not wear it for the entire visit, according to The Guardian.)

Those theorizing about Melania not wearing headscarf in #Saudi :No First Lady or SOS did! Not Barbara or Laura Bush, not Hillary or Michelle pic.twitter.com/X4Ir7OcxNp — Joyce Karam (@Joyce_Karam) May 20, 2017