That joke was perhaps originally written by H. Allen Smith, and published in his now rare paperback, “Rude Jokes”.
My favorite author. I’ve read practically every one of his many books.