sṛṣṭvā bhūta-piśācāṁś ca
vīkṣya cāmīlayad dṛśau
sṛṣṭvā—having created; bhūta—ghosts; piśācān—fiends; ca—and; bhagavān—Lord Brahmā; ātma—his; tandriṇā—from laziness; dik-vāsasaḥ—naked; mukta—disheveled; keśān—hair; vīkṣya—seeing; ca—and; amīlayat—closed; dṛśau—two eyes.
The glorious Brahmā next evolved from his sloth the ghosts and fiends, but he closed his eyes when he saw them stand naked with their hair scattered.
Ghosts and mischievous hobgoblins are also the creation of Brahmā; they are not false. All of them are meant for putting the conditioned soul into various miseries. They are understood to be the creation of Brahmā under the direction of the Supreme Lord.
Link to this page: https://prabhupadabooks.com/sb/3/20/40