If God had to make up energy and matter and time. Were was energy and matter and time before God made them?
I am asking all religions at the same time what they think.
I'm not sure "make up" is the right term; when we are "making things up" we are emulating with our minds and bodies the original act of Creation. This is why many Abrahamic traditions forbid making human images, it's like trying to replicate the feat that made us. I prefer to think of creativity as participation rather than hubris, though; joining in with the ongoing process of creation.
As for energy and time, there was a point- a singularity or monad - where/when they simply were not; even from a strictly scientific and materialist perspective, this seems to be true. There's talk in some circles about a theoretically infinite universe, but not time and matter, which are properties of this iteration of the universe; if they existed in previous ones, they likely followed entirely different rules, because we know that matter and energy are at least partially properties of the big bang itself. For about, 10^-34 of a second, matter didn't even exist
after the big bang.
Adapting this sort of thought to religious matters, I see both matter and energy as essentially emanations of the same source, whose properties only exist in tension with one another and whose existence are coterminous with the One who births it all. They always existed in the sense that the their Source has always existed, but they have not always been defined or separated into separate properties, characteristics, gods and stories and places, etc. Like asking whether a character existed before I wrote them into a novel; they were always a part of my mind and experiences, but they only became a part of the story when I wrote them in.