“I will be forever grateful to my incredible doctors,” the reality star said on social media.

Kourtney Kardashianis feeling grateful after undergoing “urgent fetal surgery” that saved her and husbandTravis Barker’s baby.

And to my mom, thank you for holding my hand through this."

Kourtney Kardashian and Travis Barker

Kourtney Kardashian and Travis Barker.Credit: Momodu Mansaray/Getty Images

Kardashian, 44, said the sudden health scare left her feeling completely terrified.

She concluded, “Praise be to God.

Walking out of the hospital with my baby boy in my tummy and safe was the truest blessing.”

“God is great,” he wrote.

“I flew home for a life-threatening emergency surgery for our baby that I’m so grateful went well.

I want to say thank you for all the support.

Tour resumes Friday.”