The husband agreed to share his wife with his best friend