An Army veteran, a recent college graduate and a student who once won a poetry contest by condemning prejudice stirred up by the Sept. 11 attacks intervened as a man screamed anti-Muslim insults at two women in Portland, Ore., on Friday.

In the days that followed, the three men were hailed as heroes.

Two of the men — Taliesin Myrddin Namkai Meche, 23, and Rick Best, 53 — died in the attack, which occurred on a commuter train. The third, Micah David-Cole Fletcher, 21, was treated on Saturday for injuries that the police said were serious but not life-threatening.

Jeremy Christian, 35, of North Portland, Ore., was charged with two counts of aggravated murder in the attack and could face additional charges when he is arraigned on Tuesday. Mr. Christian, who the authorities said had a history of making extremist statements on social media, was ranting at, and talking disparagingly about, the two women, one of whom was wearing a hijab.

One of the women, Destinee Mangum, 16, spoke to a Fox affiliate in Oregon on Saturday. She said she is not a Muslim.