I don't know that I've ever seen a movie with Bogart in it, but I have certainly listened to M.O.E. here and there, and this line pops up during a song called "Mexico".

It also appears in Blazing Saddles in the scene where they are getting a whole bunch of baddies (KKK, Wehrmacht and Mexican Bandits etc) to swear into a posse.

My kids used to be in stitches and quoted it all the time, especially at cub scouts and brownies.