ראשית חכמה יראת יי שכל טוב לכל עושיהם תהלתו עומדת לעד. אמר דוד המלך עליו השלום מי שהכין את לבבו להתעסק בחכמה תחלה יתעסק ביראת יי' ויעשה ממנה שרש ועיקר וכל דרכיה יתנהג בחכמה שילמד על הדרך שאמרו רבותינו ז"ל כל שיראת חטאו קודמת לחכמתו חכמתו מתקיימת וכל שחכמתו קודמת ליראת חטאו אין חכמתו מתקיימת ויראת יי' היא התורה והמצוה ודברי הנביאים וקבלת החכמים בתורה שבעל פה והחכמה היא חכמת הפילוסופיא ואם ילמד אדם חכמת הפילוסופיא תחלה יבהל ברוחו ויעוז מצחו להכחיש האותות והמופתים הגדולים הנמצאים בכתב הקדש כי הם דברים לא תכילם החכמה ההיא אמנם כאשר יקדים למוד התורה שהיא יראת יי' וישים בלבו להאמין כל הכתוב בה ובכל כתבי הקדש וכאשר יתבונן בהם ימצא בהם דרכי החכמה כמו שכתוב כי היא חכמתכם ובינתכם לעיני העמים אשר ישמעון את כל החקים האלה ואמרו רק עם חכם ונבון הגוי הגדול הזה כי אין צריך לומר התורה והמצוה שהם בנויות על דרך השכל כי גם החוקים אשר נאמר עליהם כי אין להם טעם כן הוא שאין להם טעם נראה לרוב בני אדם אבל החכם המתבונן בהם ימצא טעמם ברור ומבואר ואחרי התבונן החכם המבין בדרכי התורה וישימה יסוד לחכמה וישתדל בלבו לקרב את הדברים הרחוקים אל הדעת וילמד חכמת הפילוסופיא אחרי כן לא תשתבש דעתו בלמדו החכמה בתורה אשר למד תחלה כי כבר תקעה יתד במקום נאמן ויקרב דרכי החכמה אליה בכל כחו ויכולתו ותהא שלמה משכורתו ואמר שכל טוב לכל עושיהם פירוש שכל טוב עיון טוב והשגחה טובה יש לכל המשתדל בשניהם ביראת יי' ובחכמה כי גם ביראת יי' לא יהיה שלם אם לא יתעסק בחכמה או יהיה פירוש שכל טוב הצלחה טובה כמו ויהי דוד בכל דרכיו משכיל כלומר שיצליח המתעסק בשתיהן בעולם הזה ובעולם הבא ואמרו רבותינו ז"ל לומדיהם לא נאמר אלא עושיהם מלמד שהמעשה גדול ואף על פי שאמרו הם גם כן התלמוד גדול שהתלמוד מביא לידי מעשה לא הגדילו התלמוד אלא מפני שהוא מביא לידי מעשה ולא יכשר המעשה מבלי הלמוד כמו שאמרו אין בור ירא חטא ולא עם הארץ חסיד אלא בודאי המעשה גדול כמו שאמר הכתוב ולמדתם אותם ושמרתם לעשותם למדו בעבור שתעשו ואמרו רבותינו ז"ל כל מי שישנו בעשייה ישנו בלמידה וכל מי שאינו בעשייה אינו בלמידה ואמרו עוד כל האומר אין לי אלא תורה אין לו תורה פירוש שאומר אין לי עסק בעשיית המצות אלא בקריאת התורה בלבד אין לו אפילו שכר קריאת התורה שנאמר ולמדתם אותם ושמרתם לעשותם כל שישנו בעשייה ישנו בלמידה וכל שאינו בעשייה אינו בלמידה ואמרו כל העוסק בתורה בלבד דומה כמי שאין לו אלוה שנאמר ללא אלהי אמת וללא תורה פירוש שהלמוד מאין מעשה אינו דבר מועיל אבל הוא מריע ומזיק לעצמו ולזולתו ודמו חכמינו ז"ל התלמוד מבלי מעשה למי שבונה ביתו ואינו מציב לו דלתות כי בודאי יהיה אותו הבית משולח ונעזב כמדבר ומקצתם דמו אותו למי שאין לו בית ובונה דלתות לבית כי טורח הדלתות ללא תועלת הוא ואמרו חכמינו ז"ל החכמה מבלי מעשה היא טענת הבורא על ברואיו ואמרו מי שאין דבריו דומין למעשהו הוא מבייש את עצמו ואחר שביארנו כי המעשה הוא העיקר נאמר כי המעשה הוא על שני פנים וכל אחד מהם הוא עמוד גדול לשכר האדם בזה ובבא האחד הוא מעשה המצות ושמירתם ודרכי המוסר ימצא בהם שכל טוב בעיני אלהים ואדם והמעשה האחר הוא כתיבת החכמות וביאור התורה והמצות לחקקם על ספר למען יעמדו ימים רבים כי אם לא היו כותבים החכמים הקדמונים דבריהם על ספר כבר אבדו החכמות וספו המזמות ובטלו התורה והמצות אבל החכמים ובעלי התורה בכתיבת דבריהם וביאוריהם על ספר ישאירו ברכה אחריהם ובודאי לא מתו החכמים ההם ואמרו רבותינו ז"ל הצדיקים אפילו במיתתן קרואין חיים ואמרו משה רבינו עליו השלום לא מת ואמר יתברך שמו בא כתבה על לוח אתם ועל ספר חקה ותהי ליום אחרון לעד עד עולם ועל כן חתם דוד עליו השלום הפסוק שהקדמנו תהלתו עומדת לעד ויתפרש על המעשה הראשון שהקדמנו כי עושה מעשה היושר ושומר התורה והמצות והמתעסק בחכמה תהיה תהלתו בפי האנשים לכמה דורות ונפשו גם כן עומדת לעד לעולם הבא עד עולם ויתפרש על המעשה השני כי כותב הספרים תהלתו עומדת לעד לרואי הספרים ההם וללומדיהם ועל כן נקראו החכמים בעלי אסופות לפי שאוספין דבריהם ודברי זולתם על ספר להיותם לעד למשמרת ולעולם למזכרת ויש להם שכר טוב בעמלם וצדקתם עומדת לעד ועל כן ראיתי אנכי הצעיר דוד ב"ר יוסף קמחי ז"ל לכתוב על ספר ביאור דברי המקרא כאשר למדתי וקבלתי וכאשר תשיג יד מחשבתי באשר יי' אתי אשר לו נאוו תהלות אשאל העזר להחל ולכלות כי הוא העוזר והסומך יתברך שמו ואכתוב הפסוקים אשר צריך לפרשם והמלים אשר צריך לדקדקם גם אכתוב טעם כתוב וקרי וכתוב ולא קרי וקרי ולא כתוב כאשר אוכל לתת טעם לשניהם כל אחד ואחד במקומו ונראה כי המלות האלה נמצאו כן לפי שבגלות ראשונה אבדו הספרים ונטלטלו והחכמים יודעי התורה מתו ואנשי כנסת הגדולה שהחזירו התורה ליושנה מצאו מחלוקת בספרים והלכו בהם אחר הרוב לפי דעתם ובמקום שלא השיגה דעתם על הבירור כתבו האחד ולא נקדו או כתבו מבחוץ ולא כתבו מבפנים וכן כתבו בדרך אחד מבפנים ובדרך אחר מבחוץ ואכתוב בקצת המקומות תרגום יונתן בן עוזיאל שיש בו פירושים טובים ונאים גם אביא דברי רבותינו זכרונם לברכה במקומות שאנו צריכים לפירושם ולקבלתם על כל פנים גם כן אביא קצת הדרשות לאוהבי הדרש ועתה אחל בעזרת המלמד לאדם דעת: "Reishit chochmah yirat Hashem, seichel tov lechol oseihem, tehillato omedet la'ad." (The fear of the Lord is the beginning of wisdom: a good understanding have all they who do his commandments: his praise endures forever.) (Psalm 111:10) King David, peace be upon him, said: Whoever prepares his heart to engage in wisdom should first engage in the fear of Hashem and make it the foundation and principal element. All his ways should be conducted with wisdom, as our Rabbis of blessed memory said, "Whoever's fear of sin precedes his wisdom, his wisdom endures, and whoever's wisdom precedes his fear of sin, his wisdom does not endure." The fear of Hashem refers to the Torah and the mitzvot, the words of the prophets, and the tradition of the sages in the Oral Torah. Wisdom refers to the wisdom of philosophy.And if a person studies the wisdom of philosophy first, he will become confused in his spirit and stubbornly deny the great signs and miracles found in the Holy Scriptures, for these are matters that wisdom cannot comprehend. However, when he first studies the Torah, which is the fear of Hashem, and sets his heart to believe everything written in it and in all the Holy Scriptures, he will find paths of wisdom in them. As it is written, "For it is your wisdom and understanding in the eyes of the nations, who will hear all these statutes and say, 'Surely this great nation is a wise and understanding people.'" It goes without saying that the Torah and the commandments are built on the way of reason, but even the statutes, which are said to have no reason, appear unreasonable to most people. However, the wise person who contemplates them will find their reason clear and evident. After the wise person has reflected on the ways of the Torah and established it as the foundation of wisdom, he will strive in his heart to bring distant matters closer to understanding. When he subsequently studies the wisdom of philosophy, his mind will not become confused, for the wisdom of the Torah he has learned first has already firmly secured his understanding. And he will bring the ways of wisdom closer to it with all his strength and capability, and his reward will be complete. The phrase 'seichel tov lechol oseihem' means that good intellect, good insight, and good supervision come to all who engage in both the fear of Hashem and wisdom. For even in the fear of Hashem, one will not be complete if one does not engage in wisdom. Alternatively, 'seichel tov' can mean good success, as in the verse 'And David was successful in all his ways,' indicating that one who engages in both will succeed in this world and in the world to come. And our Rabbis of blessed memory said: "It does not say 'to their learners' but 'to their doers,' teaching that action is greater." And even though they also said that study is greater because it leads to action, they only elevated the importance of study because it leads to action. Action cannot be proper without study, as they said, "An ignorant person cannot be pious, and an unlearned person cannot fear sin." Indeed, action is truly greater, as the scripture says, "You shall teach them and observe to do them"—learn so that you will do. And our Rabbis of blessed memory said: "Whoever is engaged in doing [the mitzvot] is also engaged in learning, and whoever is not engaged in doing is not engaged in learning." They also said: "Anyone who says, 'I have only Torah,' does not even have Torah." This means that one who says, "I have no involvement in performing the mitzvot, only in studying the Torah," does not even receive the reward for Torah study. As it says, "You shall teach them and observe to do them"—whoever is engaged in doing is engaged in learning, and whoever is not engaged in doing is not engaged in learning. They also said: "Anyone who occupies himself with Torah alone is like someone who has no God," as it is said, "without the true God and without Torah." This means that study without action is not beneficial, but rather it harms himself and others. Our sages of blessed memory compared study without action to someone who builds a house but does not set doors in it, for surely such a house would be open and abandoned like a wilderness. Some compared it to someone who has no house but builds doors for a house, for the effort spent on the doors is useless without the house. And our sages of blessed memory said: "Wisdom without action is the Creator's complaint against His creations." They also said: "One whose words do not match his actions shames himself." After explaining that action is the principal element, we say that action has two aspects, each of which is a major pillar for a person's reward in this world and the next. The first is the performance of the mitzvot, their observance, and the ways of ethics, where one finds favor in the eyes of God and man. The other type of action is the writing of wisdom and the explanation of the Torah and the mitzvot, to inscribe them in books so that they endure for many days. If the early sages had not written their words in books, wisdom would have already been lost, plans would have perished, and the Torah and mitzvot would have ceased. But through their writing and explanations in books, the sages and scholars leave a blessing behind them, and indeed, those sages did not truly die. And our Rabbis of blessed memory said: "The righteous are called alive even in their death," and they said, "Moses our teacher, peace be upon him, did not die." And the Blessed One said: "Come, write it on a tablet for them and inscribe it in a book, so that it will be a witness for the last day forever." Therefore, David, peace be upon him, concluded the verse we previously mentioned with "His praise endures forever." This can be interpreted regarding the first type of action we mentioned: the one who acts righteously, observes the Torah and the commandments, and engages in wisdom will be praised by people for many generations, and his soul will endure forever in the world to come. It can also be interpreted regarding the second type of action: the writer of books, whose praise endures forever among the readers and learners of those books. This is why the sages are called "masters of collections," because they collect their words and the words of others into books, making them a witness and a memorial forever. They have good reward for their labor, and their righteousness endures forever. Therefore, I, the young David, son of Rabbi Yosef Kimchi, of blessed memory, saw fit to write a commentary on the words of the Scriptures, according to what I have learned and received, and according to the capacity of my understanding, with the help of Hashem, who is worthy of praise. I ask for assistance to begin and complete this work, for He is the helper and supporter; blessed be His name. And I will write the verses that need to be explained and the words that need to be analyzed carefully. I will also provide the explanation for ketiv (written) and keri (read) and ketiv lo keri (written but not read) and keri lo ketiv (read but not written) when I can give a reason for each one in its place. It appears that these words were found in such a state because during the first exile, the books were lost and scattered, and the sages who knew the Torah died. When the Men of the Great Assembly restored the Torah to its original state, they found discrepancies in the books and followed the majority opinion according to their understanding. In places where they could not be certain, they wrote one version and did not vocalize it, or wrote one version outside (the text) and did not write it inside, and sometimes they wrote one version inside and another outside. I will also write, in some places, the Targum of Jonathan ben Uzziel, which contains good and beautiful interpretations. I will bring the words of our Rabbis, of blessed memory, in places where we need their explanations and acceptance, and I will also bring some of the midrashim for those who love midrash. And now I will begin, with the help of the One who teaches knowledge to man.