Star Trek Discovery Episode 107 "Magic to Make The Sanest Man Go Mad"
Harry Mudd returns and he is not a happy guy! He has ALL the time in the world to get it right.. but does he?
Episode 107: Magic to Make The Sanest Man Go Mad
While attending a crew party, Burnham and Tyler are called to the bridge to deal with an endangered space creature that the Discovery has come across. When the creature is brought on board, it is revealed to be carrying a person: Harry Mudd. He plans to kill Lorca and sell the ship to the Klingons, but when he is caught he blows up the ship instead. Time returns to the party earlier, with Burnham and Tyler called to the bridge again. They are intercepted by Stamets, who is aware that they are in a time loop due to his interactions with Ripper. Over several time loops Stamets works with Burnham and Tyler to find a solution to the problem while Mudd gets further in his plan each time. They eventually convince Mudd that he has won, and he ends the time loop. Preparing to receive a boarding party of Klingons, Mudd is instead confronted by his "beloved" Stella and her father, from whom he had stolen her dowry. They take Mudd away. Stamets reveals to Burnham and Tyler that in one of the time loops they had danced together and kissed. - Wikipedia