One verse

Srimad Bhagavatam 5.26.20

5.26.20

यस्त्विह वा अगम्यां स्त्रियमगम्यं वा पुरुषं योषिदभिगच्छति तावमुत्र कशया ताडयन्तस्तिग्मया सूर्म्या लोहमय्या पुरुषमालिङ्गयन्ति स्त्रियं च पुरुषरूपया सूर्म्या ॥ २० ॥

yas tv iha va agamyam striyam agamyam va purusam yosid abhigacchati tav amutra kasaya tadayantas tigmaya surmya lohamayya purusam alingayanti striyam ca purusa-rupaya surmya.

yah
any person who
tu
but
iha
in this life
va
or
agamyam
unsuitable
striyam
a woman
agamyam
unsuitable
va
or
purusam
a man
yosit
a woman
abhigacchati
approaches for sexual intercourse
tau
both of them
amutra
in the next life
kasaya
by whips
tadayantah
beating
tigmaya
very hot
surmya
by an image
loha-mayya
made of iron
purusam
the man
alingayanti
they embrace
striyam
the woman
ca
also
purusa-rupaya
in the form of a man
surmya
by an image

A man or woman who indulges in sexual intercourse with an unworthy member of the opposite sex is punished after death by the assistants of Yamaraja in the hell known as Taptasurmi. There such men and women are beaten with whips. The man is forced to embrace a red-hot iron form of a woman, and the woman is forced to embrace a similar form of a man. Such is the punishment for illicit sex.