Invision/AP 1 / 3

Tom Hanks has got the moves! And thank you, Justin Bieber, for sharing the side-splittingly-funny footage via Instagram of the "Saving Mr. Banks" star getting down on the dance floor at Scooter Braun and Yael Cohen's wedding on Sunday, July 6.

PHOTOS: Celebs with Bieber fever"Haha," wrote Bieber as he captioned the hilarious video. "Tom Hanks singing ‘This Is How we do it' dressed like a Rabbi lol #thatdancetho.”

The amazing video shows Hanks, 57, complete with white yarmulke and shawl, busting some moves and singing the words to Montel Jordan's 1995 club classic. When Hanks finishes his moment in the spotlight, whoops are heard from an appreciative audience at the wedding reception, held in Whistler, British Columbia, Canada.

PHOTOS: Celebrity dance-offs: Tom Hanks vs. 50 Cent

The Cohen-Braun wedding was a star-studded affair. As well as Hanks and Bieber (Braun is Beiber's longtime manager), Carly Rae Jepsen, Ed Sheeran, and Cohen's close pal, actress Sophia Bush, were also in attendance.

When not filming clips of wedding guests dancing, Bieber spent the night snapping selfies with other famous guests, and the happy couple themselves.

PHOTOS: Celebrity buddies

"Congrats Yael ;) u looked like a princess last night," he wrote in a message to the beautiful bride alongside an Instagram snap of the two of them. "And damn I can't believe Scooter found someone that puts up with his bs ;) love you guys."


Tom Hanks' life in pictures

Jessica Simpson and Eric Johnson tie the knot

Jessica Simpson's kissy Instagram