There were quite a few, but the first time I heard it was the John Wayne movie “Angel and the Badman”.
I also think Mel Brooks used it, facetiously, in History of the World, but I could easily be wrong.
Thank you. “Angel and the Badman” was a good movie. You just reminded me to watch it again.