SAN DIEGO (CBSLA.com) — A couple got quite the wedding surprise on their big day when President Obama showed up and even posed in some pictures.

CBS 8, a San Diego affiliate, reports that the president was playing golf near the area where an altar had been set up for now-newlyweds Brian and Stephanie Tobe.

READ MORE: Bob Dole, Who Overcame Severe WWII Wounds To Lead Senate GOP And Run For President, Dies At 98

After he finished his game, Molly Elizabeth Nelson, a catering sales manager, said Obama started shaking hands.

“He finished on eighteen and I heard he had a pretty good round. We were all clapping and expected him to ride off. He did not, he started shaking hands,” Nelson told CBS 8.

READ MORE: Inside SoCal: 12/5 Wrap-Up

The incident at The Lodge at Torrey Pines happened over the weekend while Obama was wrapping up his whirlwind trip to the Southland.

“So THIS happened at yesterday’s wedding… 😆 The President (OMGOMGOMGOMG) was in San Diego this weekend at the venue where we were photographing a gorgeous wedding, and we CAUGHT.IT.ALL,” the couple’s wedding photographers Erin and Jeff Youngren said in an Instagram post.

MORE NEWS: 1 Dead, 4 Injured In Multi-Car Crash In Anaheim

Obama even posed in some of their wedding pictures.