WASHINGTON — As President Trump tries to rebut the portrayal in the latest attention-grabbing book, he has denied not only saying the things attributed to him, but also that he has ever said anything like them. The problem for Mr. Trump is that, in some cases at least, the record shows that he has.

“The Woodward book is a scam,” Mr. Trump wrote on Twitter on Friday morning about “Fear: Trump in the White House,” the new volume to be published by Bob Woodward next week. “I don’t talk the way I am quoted. If I did I would not have been elected President. These quotes were made up.”

In particular, Mr. Trump has denied that he called Attorney General Jeff Sessions “mentally retarded” or a “dumb Southerner,” as the book reports. “I said NEITHER, never used those terms on anyone, including Jeff, and being a southerner is a GREAT thing,” the president wrote earlier this week.

But, in fact, Mr. Trump has used the phrase “mentally retarded” on recorded radio shows that have been unearthed this week. And in a previously unreported incident, a journalist who used to interact with Mr. Trump during his days as a real estate developer in New York said this week that he even used the phrase “dumb Southerner” to describe his own in-laws.