The creation of the mind

The mind is one of the machines that takes over the functions of the soul.

Creation of the mind (whereby its material nature becomes clear,
because it has a beginning,
and everything that has a beginning has an end,
i.e. it is not eternal, spiritual, but temporal, i.e. material)
is described in the Vedic literature.

Brahmā, the first being in the material universe conditioned by the False Ego, describes the first part of creation to his son Nārad, as described in Bhagavat Puran 2.5.30-33:

vaikārikān mano jajñe devā vaikārikā daśa
dig-vātārka-praceto 'śvi-vahnīndropendra-mitra-kāḥ.

From the virtue mode of existence arose the mind and the first god (Brahmā) -vaikārikāt jajñe manaḥ kāḥ
From the virtue mode (also manifested) the gods (who live in the celestial-material worlds) - vaikārikāt devāḥ
(as those who control) the ten directions, the air, the sun, the fire - daśa dik vāta arka vahni
(and ) the sages, Aśvinī-kumāri, the ruler of paradise, his brother and the demigod of honesty and friendship - pracetaḥ aśvi indra upendra mitra.

In Bhagavad-gita 7.4, spoken (chanted) over 5300 years ago by Śri Krishna,
who is accepted as the avatar of the Transcendental Lord and at the same time as the original form of the Absolute Truth, it says:

bhūmir āpo 'nalo vāyuḥ / khaḿ mano buddhir eva ca
ahańkāra itīyaḿ me / bhinnā prakṛtir aṣṭadhā.

This material energy of Mine has eight divisions as follows.
earth, water, fire, air, space (ether),
mind (mana), intelligence (buddhi) and of course the false ego (ahańkāra).