President Obama urged Hillary Clinton to concede to Donald Trump on the night of her devastating loss, it was reported Friday.

Obama made the call as Clinton and her campaign were watching the election slip away from them in Rust Belt states, according to The Hill newspaper, citing a forthcoming book by its senior White House correspondent Amie Parnes.

“You need to concede,” Obama reportedly told Clinton.

Clinton allies were apparently hoping she would wait for a miracle turnaround in Wisconsin, Michigan, and Pennsylvania — three states where Green Party candidate Jill Stein is seeking recounts.

Clinton eventually acknowledged her loss and called Trump — but only after her campaign chief, John Podesta, at 2 a.m. told stunned supporters at her election night party to go home because “we’re not going to have anything more to say tonight.”

Clinton’s call was made around 2:30 a.m.

“There was a lot of discussion about Michigan and Wisconsin and whether the numbers could flip it,” said a source, according to The Hill.

The source said the final numbers were so close that Clinton might not have placed her call to Trump without a push.

“If anybody knew what actually happened that night, no one would have conceded,” the source said.

But after Obama interceded, Clinton ended any debate.

“Just give me the phone,” she reportedly said in frustration. “I’m calling him.”