A man who had sexual relations with another man had done something detestable and both would be put to death.