A Guide for the Married Man is a 1967 American bedroom farce comedy film starring Walter Matthau, Robert Morse, and Inger Stevens. It was directed by Gene Kelly. It features a large number of cameos, including Lucille Ball, Jack Benny, TerryThomas, Jayne Mansfield, Sid Caesar, Carl Reiner, Joey Bishop, Art Carney and Wally Cox. The title song, performed by The Turtles, was composed by John Williams with lyrics by Leslie Bricusse.
Paul gets close to cheating on his wife Ruth, but he never quite goes through with it. In a scene near the end when he is in a motel room with another woman, Jocelyn, a wealthy divorcee, Paul hears sirens approaching. He looks out the window to see the police, and they are going to the room next door where his friend Ed is in bed with Mrs. Johnson. Paul takes this opportunity to flee the scene and run home to his beloved wife.
Source: Wikipedia