President Donald Trump has been slammed for falsely suggesting former President Barack Obama did not call the family members of soldiers who died in action.

Commenting that he had written letters to the families of the four soldiers killed in Niger, the president on Monday hit out at his predecessor, in an accusation that immediately prompted fact-checking pundits on social media to shoot down Trump’s accusations as a lie.

“I have written them personal letters, they have been sent or they’re going out tonight but they were written over the weekend. I will at some point during the period of time call the parents and the families because I have done that traditionally,” MSNBC cited Trump's remarks regarding the fallen U.S. elite soldiers in Niger last week.

Obama’s former foreign policy adviser and speechwriter Ben Rhodes wrote on Twitter: “This is an outrageous and disrespectful lie even by Trump standards. Also: Obama never attacked a Gold Star family."

Other Twitter users also shared examples of former presidents honoring fallen soldiers, in an attempt to dispute Trump’s assertions.