Though Brahman and Maya seem different but both are one and the same.
1-10. Brahmā said :-- " ... the Devī Bhāgavatī, the Prime Śakti, She addressed me thus in the following sweet words :-- There is oneness always between me and the Puruṣa; there is difference whatsoever at any time between me and the Puruṣa (Male, the Supreme Self). Who is I, that is Puruṣa; who is Puruṣa, that is I. The difference between force and the receptacle of force is due to error (maya). He who knows the subtle difference between us two, is certainly intelligent; he is freed from this bondage of Samsāra; there is no manner of doubt in this. The One Secondless Eternal ever-lasting Brahmā substance becomes dual at the time of creation.As a lamp, though one, becomes two by virtue of adjuncts; as a face, though one, becomes two, as reflected in a mirror; as one man becomes double by his shadow, we become reflected into many, by virtue of different Antah Karaṇas (mind, buddhi, and ahaṅkāra) created by Māyā. The necessity of creation, again and again, after the Prākriti Pralayas is due to the fructification of those Karmas of the Jīvas, whose fruits were not enjoyed before the Pralayas ; so when creation again commences, the above said differences are found to appear; Brahmā is the material cause of these changes; without Brahmā as the basis, the existence of Māyā is simply impossible. It is therefore that in Māyā and Māyā’s action, Brahmā is interwoven. For this reason as many differences are found in Māyā, so many differences exist in Brahmā.
The Māyā and Brahmā appear as two and hence all the differences, visible and invisible, have come forth. Only during creation are these differences conceived. When everything melts away, i.e., there comes the Pralaya or general dissolution, then, I am not female, I am not male, nor I am hermaphrodite. I then remain as Brahmā with Māyā latent in it..." (Devi Bhagwatam 3.6).
“The Lord of Maya (Mayin Maheshwara) projects the Vedas, sacrifices, spiritual practices, past and future, religious observances, all that the Vedas declare, and the whole world including ourselves. The lord of Maya, again, is bound by Maya in this [in the form of Jiva].” (Swetasvatara Upanishad 4:09).
“Know then Prakriti (nature) is Mâyâ (art), and the Maheshwara the Mâyin (maker); the whole world is filled with what are his members (forms)”. (Swetasvatara Upanishad 4:10).
“The Supreme Lord appears as Isvara, omniscient and omnipotent and as the jiva, of limited knowledge and power, both unborn. But this does not deny the phenomenal universe; for there exists further the unborn prakriti, which creates the ideas of the enjoyer, enjoyment and the object. Atman is infinite and all-pervading and therefore devoid of agency. When the seeker knows all these three to be Brahman, he is freed from his fetters”. (Svetaswatara Upanishad 1:09).
“The enjoyer (jiva), the objects of enjoyment (Maya/Prakriti) and the Ruler (Isvara)—the triad described by the knowers of Brahman—all this is nothing but Brahman. This Brahman alone, which abides eternally within the self, should be known. Beyond it, truly, there is nothing else to be known”. (Svetaswatara Upanishad 1:12).
I hope this clarifies all your queries. Prd..