הבל = לבו with the kollel
In Parshas Bo, after seven plagues have struck Egypt, Hashem told Moshe, “בֹּ֖א אֶל־פַּרְעֹ֑ה כִּֽי־אֲנִ֞י הִכְבַּ֤דְתִּי אֶת־לִבּוֹ֙, come to Pharaoh, for I have hardened his heart.” Chomas Anach brings the Shach’s commentary on the Torah: Pharaoh was Kayin and Moshe was Hevel, the brother Kayin killed, after which Hashem set “לְקַ֙יִן֙ א֔וֹת, a sign for Kayin.” Now too Pharaoh wanted to kill him, and he took pride in the letter yud that Hashem gave Kayin as a sign, thinking it would let him overpower Moshe. The reverse happened: the yud, whose value is ten, turned into ten plagues against him.
Chomas Anach reads the verse this way: “הִכְבַּ֤דְתִּי אֶת־לִבּוֹ֙, I have hardened his heart,” as he sinned and killed הבל, which equals לבו, “his heart,” with the kollel, counting one more for the word as a whole. The yud added to his name, which he thought was in his favor, stands for the ten plagues.
Chomas Anach: the Chida’s notes on Tanach. Rabbi Chaim Yosef Dovid Azulai, Eretz Yisrael and Italy, 18th century.
In Tanach
First appearance of לבו
וַיַּ֣רְא יְהֹוָ֔ה כִּ֥י רַבָּ֛ה רָעַ֥ת הָאָדָ֖ם בָּאָ֑רֶץ וְכׇל־יֵ֙צֶר֙ מַחְשְׁבֹ֣ת לִבּ֔וֹ רַ֥ק רַ֖ע כׇּל־הַיּֽוֹם׃