(CNN) Former President Barack Obama was stung and brooding in the aftermath of Hillary Clinton's loss to President Donald Trump, according to new sections of a book released next week, and partly blamed his former secretary of state for the loss.

In new chapters of "Obama: The Call of History," New York Times correspondent Peter Baker depicts the former president questioning his legacy and personally insulted that voters elected Trump instead of Clinton, whom he campaigned for heavily in the closing days of the 2016 contest.

"This stings," Obama told staffers during an Oval Office meeting in the weeks after the election, a source told David Remnick of The New Yorker. "This hurts."

Baker describes Obama as deeply skeptical of Trump and mystified at why voters chose him over the more experienced Clinton. And he writes that Obama and some of his aides faulted Clinton and her campaign decisions for the outcome, which shocked the then-president.

"To Obama and his team, however, the real blame lay squarely with Clinton," Baker writes in the book. "She was the one who could not translate his strong record and healthy economy into a winning message. Never mind that Trump essentially ran the same playbook against Clinton that Obama did eight years earlier, portraying her as a corrupt exemplar of the status quo. She brought many of her troubles on herself."

Read More