The infant was not breathing when she was born, and doctors found complications with some of her organs, the television station reported.
"She had a hole in her intestines that killed about 70 percent of her intestines," her father, Javier, told KENS. "The surgeon came up to us and said, 'If I have to cut anymore, she may not make it.'"
After 311 days, Gracie made it. She was released from the neonatal intensive care unit Thursday.
"We just know that prayer works," Bernal told KENS. "We're very aware that other parents don't have the same experience as we did. We always keep them in mind and encourage anyone who has time to go visit them and pray for them.
“When they told us we were clear to go home, my first thought was, ‘It’s about time!’” Bernal said. “We’ve been pushed. We have been pulled, our faith has been tested and we have become stronger.”