Tell your friend the truth, exactly the truth: Sorry, your wife is wrong, I never made a pass at her (assuming you never really did), I would never rat you out like that!!!
And thats it, if he doesn't believe you, then walk away, let them deal with their own shit, you're better off really!