President Trump was slammed on social media for an apparently errant tweet about last week’s mass killing in Texas — sent on the same day a gunman went on a killing spree in California.

“May God be with the people of Sutherland Springs, Texas. The FBI and Law Enforcement has arrived,” Trump wrote late Tuesday at the end of his 12-day tour of Asia.

His missive closely mirrored what he tweeted about the Nov. 5 church shooting in Sutherland Springs, Texas, that killed 26 people and wounded 20.

“May God be w/the people of Sutherland Springs, Texas. The FBI & law enforcement are on the scene. I am monitoring the situation from Japan,” he tweeted at the time.

Twitterati wondered whether Trump resent an old message or meant to address the shooting in Northern California that left four dead — but forgot to change the name of the community.

Kevin Neal killed four people and wounded at least 10 others during his rampage at Rancho Tehama Reserve in Northern California, according to authorities.

“Did u just copy & paste this & forget to change the city?” @cadillaccanon tweeted.

“When your president gets confused on what mass shooting took place today you know you have a problem,” @FCDallasMom2 said.

And @Shakestweetz said: “The fact that the U.S. president can’t even keep track of all the mass shootings is a fairly compelling argument for gun reform.”

“For god’s sake, we had a TOTALLY DIFFERENT mass shooting today, in Northern California. Can you make an effort to keep up with the carnage #ThoughtsAndPrayers, please?” added @vbosch.