San Francisco 49ers wide receiver Marquise Goodwin helped his team win their first NFL game of 2017 just hours after his wife lost their son during complications in her pregnancy.

Goodwin scored a touchdown as the 49ers beat the New York Giants 31-21. He then celebrated by blowing a kiss to the sky and appeared to offer a prayer before being joined by his team-mates.

Video of the play and celebration was tweeted by the NFL.

The wide receiver caught a pass from quarterback CJ Beathard for an 83-yard touchdown during the first half at the MetLife Stadium.

Following the game Goodwin posted on his Instagram account that he and wife Morgan’s son died due to complications during the pregnancy.

He filed a moving photo of him touching hands with his dead baby son.

Goodwin asked for his followers to pray for him and his family.