(Proverbs 2:7): "He treasures up sound wisdom for the upright" - Rabbi Eliezer asked Rabbi Yehoshua, "Tell me, what is this verse?" He said to him: "My son, from the moment a person is formed in his mother's womb, that very Torah which he is destined to learn is treasured up for him; therefore it is said, 'He treasures up sound wisdom for the upright.' " "A shield to those who walk in integrity" - just as this shield protects a person, so too the Torah protects all who occupy themselves with it.
The Torah Treasured For You From Your Mother's Womb
Midrash Mishlei 2:3
(משלי ב ז): "יצפון לישרים תושיה" - רבי אליעזר שאל את רבי יהושע 'אמור לי, פסוק זה מהו?', אמר לו 'בני, משעה שנוצר אדם ממעי אמו, אותה תורה שהוא עתיד ללמוד צפונה היא לו, לכך נאמר "יצפון לישרים תושיה". "מגן להולכי תום" - מה המגן הזה מגין על האדם, כך תורה מגינה על כל המתעסק בה.