This midrashic text explains that Yaakov loved Yosef because Yosef would relay to Yaakov all the Torah he had learned from Shem and Ever, and he was the most devoted to him among the brothers.
איזהו סייג שעשה איוב לדבריו הרי הוא אומר איש תם וישר וירא אלהים וסר מרע מלמד שהרחיק איוב את עצמו מדבר המביא לעבירה ומן הכיעור ומן הדומה לכיעור א״כ מה ת"ל איש תם וישר אלא מלמד שיצא איוב מהול. אף אדם הראשון יצא מהול שנאמר (בראשית א׳:כ״ז) ויברא אלהים את האדם בצלמו. אף שת יצא מהול שנאמר (שם ה) ויולד בדמותו כצלמו. אף נח יצא מהול שנאמר איש צדיק תמים היה בדורותיו. אף שם יצא מהול שנאמר (שם יד) ומלכי צדק מלך שלם. אף יעקב יצא מהול שנאמר (שם כה) ויעקב איש תם יושב אהלים. אף יוסף יצא מהול שנאמר (שם לז) אלה תולדות יעקב יוסף והלא אין ראוי לומר [אלא] אלה תולדות יעקב ראובן ומה ת״ל יוסף אלא כשם שיצא יעקב מהול (אף) כך יצא יוסף מהול. אף משה יצא מהול שנא׳ (שמות ב׳:ב׳) ותרא אותו כי טוב הוא וכי מה ראתה אמו בו שנאה ומשובח מכל אדם אלא שיצא מהול. אף בלעם הרשע יצא מהול שנאמר (במדבר כ״ד:ד׳) נאום שומע אמרי אל. [אף שמואל יצא מהול שנאמר (שמואל א ב׳:כ״ו) והנער שמואל הולך וגדול וטוב]. אף דוד יצא מהול שנא׳ (תהילים ט״ז:א׳) מכתם לדוד (שמרני אל כי חסיתי בך). אף ירמיה יצא מהול שנא׳ (ירמיהו א׳:ה׳) בטרם אצרך בבטן ידעתיך ובטרם תצא מרחם הקדשתיך. אף זרובבל יצא מהול שנא׳ (חגי ב׳:כ״ג) ביום ההוא (אקח את) [נאום ה' צבאות אקחך] זרובבל בן שאלתיאל עבדי נאום ה׳ הרי הוא אומר (איוב ל״א:א׳) ברית כרתי לעיני ומה אתבונן על בתולה מלמד שהחמיר איוב על עצמו ולא נסתכל אפילו בבתולה והלא דברים ק״ו ומה אם בתולה זו שאם ירצה ישאנה לעצמו (לבנו לאחיו ולקרובו) החמיר איוב על עצמו ולא נסתכל בה אשת איש על אחת כמה וכמה. ומפני מה החמיר איוב על עצמו ולא נסתכל אפילו בבתולה מפני שאמר איוב שמא אסתכל אני היום ולמחר יבא איש אחר וישאנה ונמצא שאני מסתכל באשת איש:
What fence did Job make to his words? It states, A whole-hearted and an upright man, one that feareth God, and shunneth evil. This teaches that Job held aloof from anything that could lead to sin, from anything improper or having the semblance of impropriety. And what is the significance of the words a whole-hearted and an upright man? They teach that Job was born circumcised. Adam, the first man, also came into the world circumcised, for it is stated, And God created man in His own image. Seth also was born circumcised, for it is stated, And begot a son in his own likeness, after his image. Noah also was born circumcised, for it is stated, In his generations a man righteous and whole-hearted. Shem also was born circumcised, for it is stated, And Melchizedek king of Salem. Jacob also was born circumcised, for it is stated, And Jacob was a whole-hearted man, dwelling in tents. Joseph also was born circumcised, for it is stated, These are the generations of Jacob: Joseph. Surely Scripture should have said here, ‘These are the generations of Jacob: Reuben!’ Why does it say Joseph? [To teach] that as Jacob was born circumcised so Joseph was born circumcised. Moses also was born circumcised, for it is stated, She saw him that he was a goodly child. Now what did his mother see in him finer and better than in all children? [She saw] that he was born circumcised. Even the wicked Balaam was born circumcised, for it is stated, The saying of him who heareth the words of God. Samuel also was born circumcised, for it is stated, And the child Samuel grew up, increased and was good. David also was born circumcised, for it is stated, Michtam of David. Keep me, O God; for I have taken refuge in Thee. Jeremiah also was born circumcised, for it is stated, Before I formed thee in the belly I knew thee, and before thou camest forth out of the womb I sanctified thee. Zerubbabel also was born circumcised, for it is stated, In that day, saith the Lord of hosts, will I take thee, O Ẓerubbabel, My servant, the son of Shealtiel, saith the Lord, and I will make of thee as a signet. Scripture states, I made a covenant with mine eyes; how then should I look upon a maid? This teaches that Job was most strict with himself and would not even glance at a maiden. Is there not here an argument from the less to the greater? If in the case of an unmarried girl whom, if he so wish, he may marry or may give as a wife either to his son or his brother or some other relative of his, Job was most strict with himself and would not glance at her, how much more strict was he in the case of a married woman! Why was Job so strict with himself and would not even glance at a maid? Because he reasoned, ‘Perhaps I look at her to-day, and to-morrow a man comes and takes her to wife; the consequence might be that I should be thinking of a married woman’.