Nicole Kidman is pregnant — and she broke the news to hubby Keith Urban at the Betty Ford Center in Rancho Mirage, Calif., where he’s in rehab, The ENQUIRER can reveal exclusively.

Two home pregnancy tests confirmed the 39-year-old actress is expecting her first child, sources say — but, ironically, her four-month marriage to country crooner Keith, 39, is in serious jeopardy. “Nicole’s dream of having a child finally came true when two home pregnancy tests came up positive,” an insider tells The ENQUIRER.

“But she’s devastated that Keith lied to her about kicking his addictions to booze and cocaine. She’s hoping the baby will save their relationship.”

The Oscar-winning beauty was at Keith’s side when he was admitted to a 30-day rehab program at Betty Ford on Oct. 19.

Nicole — who’s suffered an ectopic pregnancy, a miscarriage and infertility problems in the past — shared her baby news with Keith during a visit on Oct. 29.

“Keith was happy, but uneasy, about the news,” confided the insider. “He knows how desperate Nicole has been to have a baby, but the timing couldn’t be worse for him.”

For more details on Nicole’s pregnancy and how her troubled husband reacted to the news, pick up this week’s issue of The National Enquirer.