One verse

Srimad Bhagavatam 8.4.15

8.4.15

यथानुकीर्तयन्त्येतच्छ्रेयस्कामा द्विजातय: । शुचय: प्रातरुत्थाय दु:स्वप्नाद्युपशान्तये ॥ १५ ॥

yathanukirtayanty etac chreyas-kama dvijatayah sucayah pratar utthaya duhsvapnady-upasantaye

yatha
without deviation
anukirtayanti
they chant
etat
this narration of the deliverance of Gajendra
sreyah-kamah
persons who desire their own auspiciousness
dvi-jatayah
the twice-born (brahmanas, ksatriyas and vaisyas)
sucayah
especially the brahmanas, who are always clean
pratah
in the morning
utthaya
after getting up from sleep
duhsvapna-adi
beginning with sleeping badly at night
upasantaye
to counteract all troublesome positions

Therefore, after getting up from bed in the morning, those who desire their own welfare—especially the brahmanas, ksatriyas, vaisyas and in particular the brahmana Vaisnavas—should chant this narration as it is, without deviation, to counteract the troubles of bad dreams.