סימן קמה סעיף ט
מִצְוָה לִשָּׂא בַת אֲחוֹתוֹ אוֹ בַת אָחִיו. אֲבָל שְׁאָר קְרוֹבָה, בֵּין שֶׁהִיא קְרוֹבָה לוֹ אוֹ לְאִשְׁתּוֹ שֶמֵּתָה אוֹ שֶגֵּרְשָׁהּ אוֹ שֶׁהִיא קְרוֹבָה לְאִשָּׁה שֶׁחָלַץ לָהּ, לֹא יִשָׂא בְּלִי שְׁאֵלַת חָכָם.
It is a mitzvah to marry your sister's daughter or your brother's daughter. You should not marry any other relative, whether she is related to you or to your deceased or divorced wife, or she is related to the woman to whom you have given chalitzah,5Chalitzah means removing. Here it refers to a ritual that includes removing the sandal of her brother-in-law, in reference to the Law of Levirate. (Yevomah) without consulting an halachic authority
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)