Things have not always been easy for power couple JAY-Z and Beyoncé — but until the rapper released his new album, 4:44, we relied on speculation and cryptic messages to draw conclusions about the state of their marriage.

In Touch can exclusively reveal that Bey, 35, and Jay, 47, who tied the knot in 2008 and are parents to three kids, Blue, 5, and one-month-old twins, Rumi and Sir, almost called it quits at one point thanks to his cheating ways.

MORE: Blue Ivy Raps on JAY Z’s New Album — and Yes, We Are Officially Freaking Out!

“[JAY-Z] had to beg his wife not to leave him,” says a source, adding they’ve been to “counseling and family therapy.”

jay z bey blue ivy - getty images

(Photo Credit: Getty Images)

“[JAY-Z] used to go out all the time and get close to women. He felt that if he hid his secrets, it almost meant he’d done nothing wrong. But Beyoncé knew all along. It became a dark shadow over their relationship.”

The rapper opened up on the footnotes of his new album, which dropped on June 30, 2017, about how bad things got between the two — over a year after Bey shocked fans with Lemonade, an album that seemingly hinted at his cheating ways and her forgiveness.

MORE: Tina Knowles Just Gives Back Story on Beyoncé’s Baby Name Choices

Today, “Jay’s at home more and is more of a family man. His focus is Beyoncé and the kids. It’s like a rebirth,” the source explains, adding their move to the West Coast helped a lot. “They both love it. They are just all-around happier.”

Last month, they became a family of five after welcoming a set of twins, making their eldest daughter, Blue, a big sister.

We are so happy to hear that they’re in a good place now.

For more on this, pick up the latest issue of In Touch — and for more exclusive content sign up for our newsletter!

Have a tip? Send it to us! Email In Touch at contact@intouchweekly.com.