According to the YouTuber Digital Hex, who mainly posts old commercials, this clip was one of the live action vignettes shot to serve as interstitial material on the Three Stooges cartoon show.

iTricks has covered the connections between the Stooges and magic in the past, including this article on Joe Besser and another on their connection to Houdini.