[בראשית ברא אלהים]. זש"ה ואהיה אצלו אמון (משלי ח ל), מהו אמון, אמר ר' יהודה בר אלעאי אומן בתורה, היה הקב"ה מביט בתורה ובורא את העולם, הוי ואהיה אצלו אמון, מה כתיב בראשית ברא אלהים, אין ראשית אלא תורה, שנאמר ה' קנני ראשית דרכו וגו' (שם שם כב), הוי בראשית ברא אלהים. [(Gen. 1:1:) IN THE BEGINNING GOD CREATED]:14Gen. R. 1:1 ; TDER 29(31); see Tanh., Gen. 1:1. This text is related (to Prov. 8:30): AND I WAS WITH HIM AS AN CONFIDANT. What is the meaning of CONFIDANT 'MWN? R. Judah bar Il'a'y said: < That he was > an expert 'WMN in the Torah. The Holy One would scrutinize the Torah as he was creating the world. Ergo: AND I WAS WITH HIM AS A CONFIDANT. What is written (in Gen. 1:1)? IN THE BEGINNING GOD CREATED. There is no BEGINNING but Torah, as stated (in Prov. 8:22): THE LORD ACQUIRED ME15“Me” here refers to wisdom, which is regarded as the equivalent of Torah. AS THE BEGINNING OF HIS WAY. Ergo: IN THE BEGINNING (i.e., in Torah) GOD CREATED.