WASHINGTON — President-elect Donald J. Trump claimed credit on Thursday night for persuading Ford to keep an automaking plant in Kentucky rather than moving it to Mexico. The only wrinkle: Ford was not actually planning to move the plant.

Mr. Trump wrote on Twitter shortly after 9 p.m. that Ford’s chairman, William Clay Ford Jr., had just told him that Ford “will be keeping the Lincoln plant in Kentucky — no Mexico.”

Minutes later, Mr. Trump wrote in a second post: “I worked hard with Bill Ford to keep the Lincoln plant in Kentucky. I owed it to the great State of Kentucky for their confidence in me!” Mr. Trump won 62.5 percent of the state’s popular vote in the presidential election.

During the campaign, he repeatedly criticized Ford for moving production to Mexico, and he threatened to impose a 35 percent tariff on vehicles made there.