friend miscarried...what do I say to them?

Ashlyn
One of my really good friends was due a month after me and I just found out she miscarried :(  What do you say to somebody who has miscarried? Idk what to say....I feel so bad. It was their first pregnancy. I was so looking forward to having our kiddos so close in age.