Look into ‘dependent origination’ in Buddhism.
Also phrased as ‘to make an apple pie from scratch, one must first create the Universe’