Justin Bieber and Tom Hanks partied together this past weekend at the wedding of Justin’s long-time manager Scooter Braun.

Bieber posted a short video clip of Hanks singing “This Is How We Do It,” and the actor is wearing a yarmulke on his head as he smiles and snaps to the music.

Bieber tweeted, “Haha Tom Hanks singing “This Is How we do it” dressed like a Rabbi lol #thatdancetho.”