Words for a real moment
What to say after pregnancy loss
Say that you are sorry, acknowledge the loss and follow their language. Do not look for a silver lining or ask for details.

Words you can use
A ready-to-send version
I’m so sorry for your loss. I’m thinking of you. Would a short call, a voice note, or simply a quiet message suit you? You do not need to explain anything, and no reply is required. If today is not right, that is completely fine.
A useful approach
Say that you are sorry and acknowledge the loss without asking for details.
Give them a choice between a brief chat and a message they can answer later.
Leave the offer open for today; do not send another message until tomorrow.
Make it fit your person
Change the relationship, timing and tone
No name is needed. Optional details are not stored.