ספר המדות Marriage · ד
Sefer HaMiddot 992
ד. עַל־יְדֵי חִתּוּן עִם תַּלְמִיד־חָכָם נִצּוֹל מֵענֶשׁ הַבָּא, עַל־יְדֵי שֶׁיָּעַץ עֵצוֹת רָעוֹת עַל חֲבֵרוֹ.
4. By making a marriage to a Torah scholar, one is saved from the punishment that comes through giving advice to do evil against a friend.