The husband agreed to share his wife with his best friend in a thrilling scene