The works of Ādi Śaṅkarācārya

Bṛhadāraṇyakopaniṣadbhāṣyam

Verse 216

स्वप्नान्त उच्चावचमीयमानो रूपाणि देवः कुरुते बहूनि ।उतेव स्त्रीभिः सहमोदमानो जक्षदुतेवापि भयानि पश्यन् ॥

In plain words

Within the dream, the shining self wanders about and conjures up countless forms, both lofty and low. Now he seems to revel among women; now he seems to laugh; and now he seems to stare straight into terrors.

Close to the Sanskrit

In the dream-state, moving about, the shining one makes many forms, high and low: as if delighting together with women, laughing, and as if also seeing frightening things.