Dīkṣā-bhedaḥ (Types of Initiation) — Lalitopākhyāna: Hayagrīva–Agastya Dialogue
शुभे दृष्टे सति स्वप्ने पुण्यं योज्यं तदोत्तमम् / दुःस्वप्ने तु जपं कुर्यादष्टोत्तरसहस्रकम्
śubhe dṛṣṭe sati svapne puṇyaṃ yojyaṃ tadottamam / duḥsvapne tu japaṃ kuryādaṣṭottarasahasrakam
If an auspicious vision is seen in a dream, one should add to one’s merit; that is the highest good. But if a bad dream occurs, one should perform japa one thousand and eight times.