Śrīmad-Bhāgavatam · Text 3.20.41
Who is speaking and story frame
जगृहुस्तद्विसृष्टां तां जृम्भणाख्यां तनुं प्रभो: ।
निद्रामिन्द्रियविक्लेदो यया भूतेषु दृश्यते ।
येनोच्छिष्टान्धर्षयन्ति तमुन्मादं प्रचक्षते ॥ ४१ ॥
jagṛhus tad-visṛṣṭāṁ tāṁ
jṛmbhaṇākhyāṁ tanuṁ prabhoḥ
nidrām indriya-vikledo
yayā bhūteṣu dṛśyate
yenocchiṣṭān dharṣayanti
tam unmādaṁ pracakṣate
The ghosts and hobgoblins took possession of the body thrown off in the form of yawning by Brahmā, 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.
Read Śrīla Prabhupāda's purport on Vedabase.io