Шофтим 14:3 Галаха: Sefer HaChinukh

וַיֹּ֨אמֶר ל֜וֹ אָבִ֣יו וְאִמּ֗וֹ הַאֵין֩ בִּבְנ֨וֹת אַחֶ֤יךָ וּבְכָל־עַמִּי֙ אִשָּׁ֔ה כִּֽי־אַתָּ֤ה הוֹלֵךְ֙ לָקַ֣חַת אִשָּׁ֔ה מִפְּלִשְׁתִּ֖ים הָעֲרֵלִ֑ים וַיֹּ֨אמֶר שִׁמְשׁ֤וֹן אֶל־אָבִיו֙ אוֹתָ֣הּ קַֽח־לִ֔י כִּֽי־הִ֖יא יָשְׁרָ֥ה בְעֵינָֽי׃

Тогда его отец и его мать сказали ему: 'Неужели среди дочерей братьев твоих или среди народа Моего никогда не бывает женщины, чтобы ты взял жену необрезанных Филистимлян?' И сказал Самсон отцу своему: 'Получить ее для меня; потому что она мне нравится.'

Sefer HaChinukh

To not wander after the thoughts of the heart and the vision of the eyes: That we not wander after the thoughts of the heart and the vision of the eyes, as it is stated (Numbers 15:39), “Do not wander after your hearts and your eyes.” The content of this negative commandment is that we were prevented from dedicating our thoughts to think about opinions that are antithetical to the ones on which the Torah is built, as that may lead one to apostasy. Rather, if the spirit to pursue these bad opinions should arise, one should minimize his thinking about them, and redouble his efforts to contemplate the true and good ways of the Torah. Similarly, one should not pursue the things he sees; and included in this is that we not pursue after the desires of this world, for in the end they are evil and “there is much shame and wrath.” This is [the meaning of] what they, may their memory be blessed, said (Berakhot 12b), “‘Do not stray after your hearts’ refers to apostasy. ‘After your eyes’ refers to licentiousness, as it is stated (Judges 14:3), ‘And Samson said to his father, “Take her for me, as she is right in my eyes.”’”