for my friend who recently gave birth to her baby at 38weeks stillborn, I actually found a beautiful blank card.
I said congratulations on the birth of their baby girl and that I was sorry for their loss (make sure you use the baby's name). I wrote a poem in it as well that I think spoke the words I didnt know how to say. Have a look at Teni's blog as she has some beautiful (but very sad) poems.