First Lady Michelle Obama visited with patients and families, along with hospital staffs, at Brigham and Women’s and Boston Children’s hospitals on Thursday afternoon, according to a press pool report. Meanwhile, President Obama visited Massachusetts General Hospital, after offering words of encouragement to Boston Marathon volunteers. Here’s a transcript of those comments, provided by the White House press office:

We just had a wonderful interfaith service, and I want to thank Governor Patrick for helping to organize that. I want to thank both the governor and your extraordinary Mayor, Tom Menino, for the incredible leadership and cool under pressure, the organization, the mobilization and the courage that they have shown reflective of this great city and reflective of this great Commonwealth of Massachusetts.

Now, I’m not going to speak long. I’m just — he started calling me Reverend Obama, so I know — I know I was — I don’t want to go on any longer than I need to. The main message, in addition to just giving — having a chance to shake some hands and give some hugs, is just to say how proud the whole country is of you — how grateful we are — how grateful we are that in the face of chaos and tragedy, all of you displayed the very best of the American spirit.

You displayed grit. You displayed compassion. You displayed civic duty. You displayed courage. And when we see that kind of spirit, there’s something about that that’s infectious. It makes us all want to be better people. You’ve inspired the entire country. You’ve inspired the world. And for that, you should be profoundly proud.

But as Deval and I were talking as we were driving in from the airport, the key is that we hang on to a little bit of that, because it’s right there under the surface every day. And it expresses itself, obviously, in the Marathon. It expresses itself in Patriot’s Day. It expresses itself in all the small interactions, the gestures of kindness and generosity and tolerance and compassion that make up the fabric of our lives. And we don’t always pay attention to it, and we don’t always celebrate, and it’s certainly not usually on a television screen, it’s not always reported on. But that’s who we are.

And if there’s anything that was a theme in that interfaith service it’s that out of these ashes, out of the blood that’s spilled and the injuries borne, out of that, we get a chance to see and highlight and appreciate that spirit. And we’ve got to sustain it, because in all of our lives at some point there are going to be some troubles, and there’s evil in the world, and there’s hardship. But if that spirit is evident and manifest, and that’s what we’re teaching our kids and that’s what we’re embodying in our own lives, then who can stop us? Who can touch us?

So thank you, everybody. I’m proud of you. I’m proud of Boston. And as I just said, I’m looking forward to the 118th Boston Marathon. God bless you.