My friend lost her baby at 4.5 months pregnant, what do i do/say?

My friend was pregnant with her first and has had complications, baby girl was not growing and last night they went to the hospital for a sudden miscarriage.

I got the text through her husband and not sure what to say to her, i would like to send something or do something.

What do i do & when?

We’re close friends and she has her husband’s family around so i don’t know wether she needs a friend too.