One verse

Srimad Bhagavatam 3.20.41

3.20.41

जगृहुस्तद्विसृष्टां तां जृम्भणाख्यां तनुं प्रभो: । निद्रामिन्द्रियविक्लेदो यया भूतेषु द‍ृश्यते । येनोच्छिष्टान्धर्षयन्ति तमुन्मादं प्रचक्षते ॥ ४१ ॥

jagrhus tad-visrstam tam jrmbhanakhyam tanum prabhoh nidram indriya-vikledo yaya bhutesu drsyate yenocchistan dharsayanti tam unmadam pracaksate

jagrhuh
took possession
tat-visrstam
thrown off by him
tam
that
jrmbhana-akhyam
known as yawning
tanum
the body
prabhoh
of Lord Brahma
nidram
sleep
indriya-vikledah
drooling
yaya
by which
bhutesu
among the living beings
drsyate
is observed
yena
by which
ucchistan
smeared with stool and urine
dharsayanti
bewilder
tam
that
unmadam
madness
pracaksate
is spoken of.

The ghosts and hobgoblins took possession of the body thrown off in the form of yawning by Brahma, the creator of the living entities. This is also known as the sleep which causes drooling. The hobgoblins and ghosts attack men who are impure, and their attack is spoken of as insanity.