Very situation 6 years ago. Through fertility we got pregnant with twins. A boy and a girl. At 23 weeks our babies were born early. Our daughter fought hard but passed away a day after they were born, and our son passed the following day. It was the hardest thing my wife and I ever went through. And honestly we still struggle emotionally with it 6 years later.
Be there for them and let them know you love them. I will be praying for them as well.