“Jane the Virgin ”Star Justin Baldoni Hospitalized for a Week with Infection

"Thank you to the incredible team of doctors and nurses at St. John’s. Your dedication and compassion were extraordinary," the actor shared in his Instagram announcement

<p>Justin Baldoni/instagram</p> Justin Baldoni with son Maxwell Roland-Samuel, 4, and daughter Maiya Grace, 6.

Justin Baldoni/instagram

Justin Baldoni with son Maxwell Roland-Samuel, 4, and daughter Maiya Grace, 6.

Justin Baldoni is recovering after being hospitalized with an infection for a week.

On Monday, June 10, the Jane the Virgin alum shared a health update on Instagram after revealing he had been at St. John’s Hospital. Aside from sharing why he was admitted, he did not reveal additional details about his condition.

“Nothing like an infection and a week at the hospital to put everything into perspective,” the 40-year-old actor began in his Instagram caption. “God is so good. On the mend and feeling grateful.”

He continued to thank his support system, from the medical staff to his friends and family. “Thank you to the incredible team of doctors and nurses at St. John’s. Your dedication and compassion were extraordinary. To the friends and family who knew I was here—thank you for your prayers, visits, and for cheering me up.”

Related: Justin Baldoni Cuts His Hair to Donate to Locks of Love Charity: 'And It's Done'

He concluded the post by thanking his wife of 10 years, Emily. “And to my wife, my soulmate - who is so stubborn she wouldn’t leave my side and slept on a bench… I love the s--- out of you. Forever.”

In the It Ends With Us star’s post, he shared a carousel of photos of his stay, many of which included his and Emily’s children, son Maxwell Roland-Samuel, 6, and daughter Maiya Grace, 8.

The first photo he shared was of his two children lying in the hospital bed with him as they all lovingly embraced one another.

<p>Justin Baldoni/instagram</p> Justin and Emily Baldoni

Justin Baldoni/instagram

Justin and Emily Baldoni

Related: Justin Baldoni Says He Was a 'Mess' on His Kids' First Day of School: 'I Was Bawling'

He then shared a similar photo with Emily, 39, as she rested on his chest as they lied next to each other in the bed.

He also posted a photo with his IV drip as he, Maxwell and Maiya walked around the healthcare facility with each other.

<p>Justin Baldoni/instagram</p> Justin Baldoni with son Maxwell Roland-Samuel, 4, and daughter Maiya Grace, 6.

Justin Baldoni/instagram

Justin Baldoni with son Maxwell Roland-Samuel, 4, and daughter Maiya Grace, 6.

His final photo was of his daughter nestled in her father’s embrace as he hugged her close.

<p>Justin Baldoni/instagram</p>

Justin Baldoni/instagram

Related: Inside Justin Baldoni's 'Feng Shui-ed' Farmhouse in L.A. — with a Climbing Wall for His Kids!

Never miss a story — sign up for PEOPLE's free daily newsletter to stay up-to-date on the best of what PEOPLE has to offer, from celebrity news to compelling human interest stories.

More recently, Baldoni spoke with PEOPLE about his upcoming film, It Ends With Us, and how “healing” the five-year project was for him.

He stars alongside Blake Lively in the adaptation of Colleen Hoover's 2016 book that follows Lily Bloom (​Lively), a woman starting up her own business in Boston who sparks a volatile relationship with a charismatic neurosurgeon named Ryle Kincaid (Baldoni).

“I had to dig up a lot of stuff, and I found parts of me that I didn't know existed," he exclusively shared with PEOPLE. "In some way, playing Ryle was actually very healing to me as Justin. There was parts of me as Justin that I thought that I had maybe worked on and healed that I realized I hadn't.”

For more People news, make sure to sign up for our newsletter!

Read the original article on People.