Lost in a Harem is a 1944 American comedy film directed by Charles Reisner and starring the team of Abbott and Costello alongside Marilyn Maxwell.
The two men, along with Hazel, wind up in jail (where Abbott and Costello perform the "Slowly I Turned" routine with a crazy derelict with Pokomoko as the trigger word).
After escaping jail, Peter and Harvey join Ramo and his desert riders and hatch a plan to have Hazel seduce Nimativ, as he is quite vulnerable to blondes.
They are imprisoned (and encounter once again the derelict, who this time introduce them to an invisible friend named Mike with clear sound effects from a door, a piano and a broken glass), while Hazel is hypnotized into being one of Nimativ's wives.
After Ramo helps the boys escape, they enlist the aid of Teema (Lottie Harrison), Nimativ's first wife, by promising her a movie career.