Marriage on the Rocks (1965)
Marriage on the Rocks is a 1965 film comedy with Frank Sinatra, Deborah Kerr, and Dean Martin about a businessman's wife who ends up divorced by mistake and then married to his best friend by an even bigger mistake. The film was written by Cy Howard and directed by Jack Donohue.
More at Wikipedia.