ויחשבה ג' במסורה. הכא ואידך ויחשבה לזונה גבי תמר. ויחשבה עלי לשכורה גבי חנה. היינו דאר"י יהא חלקי עם מי שחושדים אותו ואין כו שהרי תמר בשביל שחשדה יהודה זכתה ויצא ממנה פרץ וזרח שיצאו מהם מלכים ונביאים. חנה בשביל שחשדה עלי זכתה ויצא ממנה שמואל בשביל שנחשדו לזונה ולשכורה נחשב להן לצדקה. (א"א הרא"ש): "ויחשבה" is mentioned three times in the Torah. Here, it refers to Tamar, who was suspected of prostitution. It also refers to Hannah, who was suspected of being drunk. This is what Rabbi Isaac Luria meant when he said that my portion is with those who are suspected but are not guilty, as Tamar, because she was suspected, was ultimately vindicated and gave birth to Perez and Zerah, from whom kings and prophets descended. Hannah, because she was suspected, was ultimately vindicated and gave birth to Samuel. Therefore, even though they were suspected of being a prostitute or drunk, they are considered righteous. (Commentary by Rabbi Asher ben Yechiel)