Former President Barack Obama personally warned Donald Trump not to hire Michael Flynn less than 48 hours after the president’s November victory.

Three former Obama administration officials told NBC News that Mr Obama told his successor not to hire Mr Flynn as national security adviser in an Oval Office meeting last year. The Trump administration fired Mr Flynn three months later, after it was revealed that he mislead Vice President Mike Pence about his conversations with the Russian ambassador.

Mr Flynn served the Obama administration as director of the Defence Intelligence Agency starting in 2012. He resigned from his post in 2014, amid rumours that he had been forced out because of his poor management skills. The Trump campaign hired Mr Flynn as an adviser in 2016.

Mr Flynn was forced to resign for a second time in February, after multiple reports claimed he had discussed US sanctions against Russian with the country's ambassador, Sergey Kislyak. It was later revealed that Mr Flynn took payment from Russian state media outlet RT in 2015, and received $500,000 from the Turkish government last year.

"The president must have complete and unwavering trust for the person in that position," White House Press Secretary Sean Spicer said in February. "The evolving and eroding level of trust as a result of this situation in a series of other questionable instances is what led the president to ask for Gen. Flynn's resignation."

The retired lieutenant general is now under investigation by the inspector general of the Department of Defence for taking payments from a foreign government against Pentagon advisement.

Barack Obama's best moments in the White House Show all 11 1 /11 Barack Obama's best moments in the White House Barack Obama's best moments in the White House May 19, 2009 “The President was leaving the State Floor after an event and found Sasha in the elevator ready to head upstairs to the private residence. He decided to ride upstairs with her before returning to the Oval Office,” Peter Souza Barack Obama's best moments in the White House Oct. 26, 2012 President Barack Obama pretends to be caught in Spider-Man's web as he greets the son of a White House staffer in the Outer Oval Office Peter Souza Barack Obama's best moments in the White House “A National Security staffer, Carlton Philadelphia, brought his family to the Oval Office for a farewell photo with President Obama. Carlton’s son, Jacob, softly told the President he had just gotten a haircut like President Obama, and asked if he could feel the President’s head to see if it felt the same as his.” Peter Souza Barack Obama's best moments in the White House March 21, 2010 The President, Vice President and senior staff applaud after watching on television the House vote on H.R. 4872 for health care reform, in the Roosevelt Room of the White House Peter Souza Barack Obama's best moments in the White House Dec. 3, 2009 President Barack Obama fist-bumps custodian Lawrence Lipscomb in the Eisenhower Executive Office Building following the opening session of the White House Forum on Jobs and Economic Growth Peter Souza Barack Obama's best moments in the White House Sept. 22, 2015 "The Obama family and Biden family greet Pope Francis as he arrives in the United States for the first time at Joint Base Andrews," Sept. 22, 2015. Peter Souza Barack Obama's best moments in the White House Feb. 21, 2014 President Barack Obama and Vice President Joe Biden participate in a "Let's Move!" video taping on the Colonnade of the White House, Feb. 21, 2014 Peter Souza Barack Obama's best moments in the White House Feb. 18, 2016 President Barack Obama watches First Lady Michelle Obama dance with 106-Year-Old Virginia McLaurin in the Blue Room of the White House prior to a reception celebrating African American History Month, Feb. 18, 2016 Peter Souza Barack Obama's best moments in the White House Jan. 21, 2013 "The President and First Lady wave to supporters as they ride in the inaugural parade. I had asked the President if I could ride in the presidential limousine and the President joked, 'But Michelle and I were planning to make out," Jan. 21, 2013. Peter Souza Barack Obama's best moments in the White House Barack Obama and former First Lady Michelle Obama share a private moment in a freight elevator at an Inaugural Ball, January 2009 all pics: Pete Souza Barack Obama's best moments in the White House Barack Obama rests his hand on the bible that President Lincoln used for his swear-in, being held by his wife Michelle Obama as he is sworn in as the 44th President of the United States of America Rex

Mr Spicer said Monday that is is "true" that Mr Obama did not think favourably of Mr Flynn, but attributed this to negative comments Mr Flynn made about the former president during the 2016 campaign.

"If President Obama was truly concerned about General Flynn, why didn’t he suspend General Flynn’s security clearance, which they had just approved months earlier?" Mr Spicer asked.

Two US officials told NBC News, however, that the DIA was not aware of the foreign payments at the time they renewed Mr Flynn's clearance. Mr Flynn has been accused of concealing these payments from the DIA by members of the House Committee on Oversight and Government Reform. The inspector general of the Department of Defence is currently investigating whether Mr Flynn failed to properly alert them of these payments.

Mr Spicer's comments echoed a tweet of Mr Trump's from this morning, in which the president asserted that Mr Flynn was "given the highest security clearance by the Obama Administration."

Mr Spicer said the Obama administration had re-approved Mr Flynn's security clearance in April. The Trump administration did not conduct an additional security review before appointing him national security adviser.

The news of Mr Obama's warning comes as his former attorney general, Sally Yates, is set to testify in front of a Senate subcommittee regarding Russian interference in the US election.

Ms Yates is said to have warned the White House as early as 26 January that Mr Flynn's contacts with Russia exceeded what he had disclosed. The White House has said they reviewed Ms Yates' information, and found nothing wrong with what Mr Flynn had said.