President Donald Trump speaks during an announcement in the Rose Garden of the White House in Washington, D.C., on Thursday, June 1, 2017.

President Donald Trump on Sunday criticized London Mayor Sadiq Khan for his response to Saturday's deadly terror attacks in the British capital, a remark that a spokesperson for the mayor dismissed as "ill-informed."

In an early morning tweet, Trump referred to the number of dead and wounded in the attack on London Bridge, and appeared to chide Khan for telling Londoners not to be alarmed. The tweet took a portion of the mayor's message to residents out of context.

@realDonaldTrump: At least 7 dead and 48 wounded in terror attack and Mayor of London says there is "no reason to be alarmed!"

Trump was referring to an earlier statement by Khan, in which the mayor told citizens that "Londoners will see an increased police presence today and over the course of the next few days. There's no reason to be alarmed."

Khan also stated that London would not be cowered by terrorism, telling the city that the threat level remains at severe.

"Severe means an attack across the country is still highly likely," he said, warning citizens to be vigilant.

@SadiqKhan: We are all shocked and angry today - but this is our city. We will never let these cowards win and we will never be cowed by terrorism.

In response to Trump's tweet on Sunday, a spokesperson for Khan said, "The Mayor is busy working with the police, emergency services and the government to coordinate the response to this horrific and cowardly terrorist attack and provide leadership and reassurance to Londoners and visitors to our city."

The spokesperson added that Khan "has more important things to do than respond to Donald Trump's ill-informed tweet that deliberately takes out of context his remarks urging Londoners not to be alarmed when they saw more police — including armed officers — on the streets."

Some British politicians were quick to back Khan and denounce Trump's comment.

Trump's tweet showed he has little regard for the "special relationship" between Britain and the United States, said Tim Farron, leader of Britain's Liberal Democrats.

"Sadiq Khan has showed calm and dignified resolve in the face of these cowardly terrorist attacks. He is more of a statesman than Trump will ever be," he said in a statement.

Conservative British Parliament member Penny Mordaunt tweeted out a printout of Khan's comments and said he was "right to provide reassurance."

@PennyMordaunt: Here's what @SadiqKhan actually said. He is right to provide reassurance. I'm standing with resilient London & him.