That was given to the Israelites as part of the Mosaic Law. The Israelites were to put Sodomites to death. As Christians, we can choose to follow the judicial precepts or not, but the moral Law is clear that sodomy is an evil abomination, and to deny this is heresy and hateful to God.