Surah Al-Israa

17:32

وَلَا تَقْرَبُوا۟ ٱلزِّنَىٰٓ ۖ إِنَّهُۥ كَانَ فَٰحِشَةًۭ وَسَآءَ سَبِيلًۭا

And do not approach unlawful sexual intercourse. Indeed, it is ever an immorality and is evil as a way.

Tafsir 17:32

Be careful of fornication and avoid things that prompt it. It is extremely detestable and bad path to traverse as it leads to the mixing of lineages and punishment from Allah.