דיני ברכת שהחיינו. ובו י סעיפים:
הרואה את חבירו לאחר שלשים יום אומר שהחיינו ואחר י"ב חודש מברך מחיה מתים והוא שחביב עליו הרבה ושמח בראייתו:
One who sees his friend after thirty days, says shehecheyanu (who has kept us alive....) and after twelve months, one blesses m'chayeh meytim (who gives life to the dead) and this is for one who is very dear to him and is happy when seeing him.
(כד) אַל־תִּ֭תְרַע אֶת־בַּ֣עַל אָ֑ף וְאֶת־אִ֥ישׁ חֵ֝מוֹת לֹ֣א תָבֽוֹא׃ (כה) פֶּן־תֶּאֱלַ֥ף ארחתו [אֹֽרְחֹתָ֑יו] וְלָקַחְתָּ֖ מוֹקֵ֣שׁ לְנַפְשֶֽׁךָ׃
(24) Do not associate with an irascible man, Or go about with one who is hot-tempered, (25) Lest you learn his ways And find yourself ensnared.

וקנה לך חבר. כיצד? מלמד שיקנה האדם חבר לעצמו, שיאכל עמו, וישתה עמו, ויקרא עמו, וישנה עמו, ויישן עמו, ויגלה לו כל סתריו: סתר תורה וסתר דרך ארץ.

How does one acquire a friend? By eating together, drinking together, reading together, studying together, sleeping together and revealing one's secrets: both Torah secrets and everyday secrets.

ואמר ״וקנה לך חבר״ זכר אותו בלשון קנייה ולא אמר: עשה לך חבר או התחבר לאחרים הכונה בזה שצריך לאדם שיקנה אוהב לעצמו שיתקנו בו מעשיו וכל עניניו כמו שאמרו: או חברותא או מיתותא ואם לא ימצאהו צריך להשתדל בו בכל לבו ואפילו אם יצטרך שימשכנו לאהבתו עד שישוב אוהב ולא יסור מהמשך תמיד אחר רצונו עד שתתחזק אהבתו כמו שיאמרו בעלי המוסר: כשתאהב לא תאהב על מדותיך ואמנם תאהב על מדת אהוביך.

And he said, "acquire for yourself a friend". He said it with an expression of acquisition and he did not say, "Make for yourself a friend," or "Befriend others." The intention of this is that a person must acquire a friend for himself, so that all of his deeds and all of his matters be refined through him, as they said (Taanit 23a), "Either a friend or death." And if he does not find him, he must make efforts for it with all his heart, and even if he must lead him to his friendship, until he becomes a friend. And [then] he must never let off from following [his friend's] will, until his friendship is firmed up. [It is] as the masters of ethics say, "When you love, do not love according to your traits; but rather love according to the trait of your friend."