President Donald Trump was slammed on social media overnight for his comments to the grieving widow of a fallen U.S. serviceman.

“He knew what he signed up for ... but when it happens, it hurts anyway,” Trump told Myeshia Johnson, according to Rep. Frederica Wilson (D-Fla.).

Johnson’s husband, Army Sgt. La David Johnson, died in an ambush in Niger earlier this month.

Wilson told the Washington Post that Myeshia, who is pregnant with the couple’s third child, cried at the president’s comment. The congresswoman added that she wanted to take the phone and “curse him out.”

She wasn’t the only one. The reports caused #HeKnewWhatHeSignedUpFor to trend on Twitter:

I'm shaking with rage at this repulsive oaf as President. https://t.co/loyaSz0fdL — Rick Wilson (@TheRickWilson) October 18, 2017

#HeKnewWhatHeSignedUpFor This "Presidency" is toxic to our country. People are sobbing in their living-rooms tonight. I'm one of them. — Queencandice (@nurscandice) October 18, 2017

Trump to pregnant military widow on slain husband: "He knew what he signed up for."



Detestable man. https://t.co/nXrOV27q5Y pic.twitter.com/0BbIlkH2kk — Sarah Kendzior (@sarahkendzior) October 18, 2017

#HeKnewWhatHeSignedUpFor NONE of us that served knew, it is a remote thought that we keep pushed back in the farthest reaches of our brains — Colleen SF (@cs_frenzy) October 18, 2017

Trump’s “respect” for military:



1. Trashed POWs



2. Viciously attacked gold star family



3. Told widow: “He knew what he signed up for” — Judd Legum (@JuddLegum) October 18, 2017

La David Johnson was the one black Green Beret out of the 4 that died in Niger. Bigot Trump told his widow he “knew what he signed up for.” pic.twitter.com/lPdZk37oAY — Scott Dworkin (@funder) October 18, 2017

Trump told widow of Sgt. Johnson, "he knew what he signed up for.” That’s far more disrespectful to our troops than kneeling during anthem. — Kaivan Shroff (@KaivanShroff) October 18, 2017

This woman is pregnant. She has 2 kids & she just lost her husband. POTUS told her he knew what he signed up for pic.twitter.com/08ExED8jU8 — Michael Cohen (@speechboy71) October 18, 2017

Trump phones widow of fallen soldier and tells her he knew what he signed up for in 5 min call. Then as his body arrives in US he plays golf — Lollipop (@LauraJardine2) October 18, 2017

Today Trump told the widow of a slain US sergeant that “he knew what he signed up for.”



That's like the soldier equivalent of "She asked for it.”



Something Trump is comfortable saying to victims. — God (@TheGoodGodAbove) October 18, 2017

I know soldiers - I even married one. They signed up to protect their countries and us. Read this thread #HeKnewWhatHeSignedUpFor https://t.co/zy2kZhvnQA — Tanalee Smith (@tanaleesmith) October 18, 2017

trump, to grieving widow of fallen soldier La David Johnson: "He knew what he signed up for."



trumpers: is THAT what YOU signed up for? pic.twitter.com/iHxCXzkvFs — BrooklynDad_Defiant! (@mmpadellan) October 18, 2017

Trump to widow of Sgt. La David Johnson: "He knew what he signed up for"



That is beneath the dignity of his office, even for him. — Craig M Fallick (@RealCMFallick) October 18, 2017

Trump response to:

—SEAL Ryan Owens's death: "[generals] lost Ryan"

—Green Beret La David Johnson's death: "he knew what he signed up for" — Pé Resists (@4everNeverTrump) October 18, 2017

TRUMP: "He knew what he signed up for."*



*trust me I know. I dodged it. — Jesse McLaren (@McJesse) October 18, 2017

On second thought, it might be best for everyone if Trump went back to golfing & ignoring Gold Star families again. https://t.co/dlxrx15JEL — Kevin M. Kruse (@KevinMKruse) October 18, 2017

By Wednesday morning, a GoFundMe page set up for Johnson’s widow and their children had raised nearly $150,000, with many of the donations coming after Trump’s comments were made public.

Story continues

Also on HuffPost

U.S. Air Force Technical Sergeant Chad Boley is reunited with his family at a surprise homecoming prior to the NASCAR Sprint Cup Series AdvoCare 500 at Phoenix International Raceway on Nov. 10, 2013, in Avondale, Arizona.

Lance Cpl. David Sellers, a refrigeration mechanic with the 24th Marine Expeditionary Unit, embraces his wife with a kiss during the Command Elementâs homecoming on July 17, 2015, at Camp Lejeune, North Carolina.

Members of the U.S. Army's 159th Combat Aviation Brigade, 101st Airborne Division, embrace family members following a homecoming ceremony at Campbell Army Airfield on Sept. 1, 2014, in Fort Campbell, Kentucky.

Five-year-old Gavin Shaw flashes a smile as he hugs his father, Master Sgt. Adam Shaw, during a Welcome Home Ceremony for approximately 230 4th Brigade Combat Team soldiers on Nov. 4, 2012, in Fort Carson, Colorado.

Husband and wife William and Rebecca Prestridge and boyfriend and girlfriend Craig Cooper and Ashley Zeigler embrace following a homecoming ceremony for members of the U.S. Army's 159th Combat Aviation Brigade, 101st Airborne Division at Campbell Army Airfield on Sept. 1, 2014, in Fort Campbell, Kentucky.

Spc. Marqes Turpin of the 273rd Military Police Company of DC Army National Guard kisses his two-year-old son Josiah Turpin as his sister Nikilae looks on during a homecoming ceremony on Oct. 16, 2012, at the DC National Guard Armory in Washington, DC.

Spc. Brian Bennett of the U.S. Army's 3rd Brigade Combat Team, 1st Infantry Division, holds his 2-year-old daughter Sophia following a homecoming ceremony in the Natcher Physical Fitness Center on Fort Knox on Thursday, February 27, 2014 in Fort Knox, Kentucky.

Sgt. Obie Dubose gets hugs from his family during a homecoming for Marines from the 13th MEU on April 24, 2014, in Camp Pendleton, California.

Bradyn Vest embraces his father, Sgt. 1st Class Kevin Vest of the U.S. Army's 159th Combat Aviation Brigade, 101st Airborne Division, following a homecoming ceremony at Campbell Army Airfield on Sept. 1, 2014, in Fort Campbell, Kentucky.

Lt. Col. Sung Kato of the U.S. Army's 101st Airborne Division gives his son an upside-down hug during a homecoming ceremony at Campbell Army Airfield on March 21, 2015, in Fort Campbell, Kentucky.

Maj. Dave Armeson of the U.S. Army's 101st Airborne Division kisses his daughter Adelyn Armeson, 2, during a homecoming ceremony at Campbell Army Airfield on March 21, 2015, in Fort Campbell, Kentucky.

Three-year-old Bella Hanley high fives Sgt. Frank Passmore while sitting atop her dad Spc. Jeffrey Hanley of the U.S. Army's 3rd Brigade Combat Team, 1st Infantry Division, following a homecoming ceremony in the Natcher Physical Fitness Center on Feb. 27, 2014, in Fort Knox, Kentucky.

Warrant Officer Anthony Woodmansee of the U.S. Army's 101st Airborne Division is embraced by his wife Emily Woodmansee during a homecoming ceremony at Campbell Army Airfield on March 21, 2015, in Fort Campbell, Kentucky.

Information Systems Technician 1st Class Milton Hill assigned to Naval Mobile Construction Battalion (NMCB) 11 is greeted by family during a homecoming ceremony at Naval Construction Battalion Center.

Staff Sgt. Chris Oldham of the U.S. Army's 101st Airborne Division plays with his son Isaac Oldham during a homecoming ceremony at Campbell Army Airfield on March 21, 2015, in Fort Campbell, Kentucky.

Chief Petty Officer Curtis A. Harmon, leading petty officer, regimental aid station, 7th Marine Regiment, hugs his daughters, Jayleme Harmon, 12, and Anya Harmon, 6, during the regiment's homecoming at Lance Cpl. Torrey L. Gray Field on Oct. 23, 2015.

Electronics Technician 2nd Class James Whatley embraces his daughter during a homecoming ceremony at Joint Base Pearl Harbor-Hickam. Deployed since March, the crew of more than 300 Sailors steamed a total of 48,550 nautical miles across the U.S. 3rd and 7th Fleet areas of operation.

Spc. Sabrina Day, 132nd Military Police Company, South Carolina National Guard, smothers her three-year-old son Blake with hugs and kisses on Aug. 4, 2014, at Eagle Aviation in Columbia, South Carolina, upon returning from deployment to Afghanistan.

Love HuffPost? Become a founding member of HuffPost Plus today.

This article originally appeared on HuffPost.