Narrated Abdullah ibn Abbas: The Prophet ﷺ said: If you find anyone doing as Lot's people did, kill the one who does it, and the one to whom it is done. Abu Dawud said: A similar tradition has also been transmitted by Sulaiman b. Bilal from 'Amr b. Abi 'Umar. And 'Abbad b. Mansur transmitted it from 'Ikrimah on the authority of Ibn 'Abbas who transmitted it from the Prophet ﷺ. It has also been transmitted by Ibn Juraij from Ibrahim from Dawud b. Al-Husain from 'Ikrimah on the authority of Ibn 'Abbas who transmitted it from the Prophet ﷺ.
The values taught in this hadith are justice and mercy towards all mankind regardless of their faith or beliefs; it also teaches us about accountability for our actions and how we should strive to do good deeds instead of bad ones so that we can reap rewards from Allah on the Day of Judgment instead of punishments for our sins here on Earth now or hereafter in the afterlife.