In this excerpt of the Patika Sutta, the Buddha expounds the origin of the belief in a creator.From this sutta,it can be said that the concept of a creator cannot be found in Buddhism in its purest form.
"...There are, Bhaggava, some ascetics and Brahmins who declared as their doctrine that all things begin with the creation by a god, or Brahma. I have gone to them and said: "Reverend sirs, is it true that you declare that all things with the creation by a god, or Brahma?"
"Yes," they replied
"In that case, how do the reverend teachers declare that this came about?" But they could not give an answer, and so they asked me in return and I replied:
"There comes a time, monks, sooner or later after a long period, when this world contracts. At a time of contraction, beings are mostly reborn in the Abhassara Brahma world. And there they dwell, mind-made, feeding on delight, self-luminous, moving through the air, glorious - and they stay like that for a very long time."
"But the time comes, sooner or later after a long period, when this world begins to expand. In this expanding world an empty palace of Brahma appears. And then one being, from exhaustion of his life-span or of his merits, falls from the Abhassara world and arises in the empty Brahma-palace. And there he dwells, mind-made, feeding on delight, self-luminous, moving through the air, glorious - and he stays like that for a very long time."
"Then in this being who has been alone for so long there arises unrest, discontent and worry, and he thinks: ‘Oh, if only some other beings would come here!’ And other beings, from exhaustion of their life-span or of their merits, fall from the Abhassara world and arise in the Brahma palace as companions for this being. And there they dwell, mind-made, … and they stay like that for a very long time."
"And then, monks, that being who first arose there thinks: "I am Brahma, the Great Brahma, the Conqueror, the Unconquered, the All-Seeing, the All-Powerful, the Lord, the Maker and Creator, Ruler, Appointer and Orderer, Father of All That Have Been and Shall Be. These beings were created by me. How so? Because I first had this thought: ‘Oh, if only some other beings would come here!’ That was my wish, and then these beings came into this existence!"
[origin of the belief in the creator]But those beings who arose subsequently think: "This, friends, is Brahma, Great Brahma, the Conqueror, the Unconquered, the All-Seeing, the All-Powerful, the Lord, the Maker and Creator, Ruler, Appointer and Orderer, Father of All That Have Been and Shall Be. How so? We have seen that he was here first, and that we arose after him."
"And this being that arose first is longer-lived, more beautiful and more powerful than they are. And it may happen that some being falls from that realm and arises in this world. Having arisen in this world, he goes forth from the household life into homelessness. Having gone forth, he by means of effort, exertion, application, earnestness and right attention attains to such a degree of mental concentration that he thereby recalls his last existence, but recalls none before that. And he thinks: ‘That Brahma, … he made us, and he is permanent, stable, eternal, not subject to change, the same for ever and ever. But we who were created by that Brahma, we are impermanent, unstable, short-lived, fated to fall away, and we have come to this world.
That, reverend sirs, is how it comes about that you teach that all things began with the creation by a god, or Brahma." And they said, "We have heard this, Reverend Gotama, as you have explained." But I know the first beginning of things… and not being under the sway of what I know I have come to know that quenching by the realization of which the Tathágata cannot fall into perilous ways.