God has always been there. God is infinite; trying to even wrap your mind about the concept of eternity isn't feasible not to mention everything else that God encompasses.
What happened to the whole matter can't be created or destroyed thing? Yet everything is somehow created because of a huge explosion according to some people.