אגוז = טוב
The Gemara in Berachos is discussing which foods may be thrown without treating them with disrespect. It cites a teaching about weddings: “מַמְשִׁיכִין יַיִן בְּצִנּוֹרוֹת לִפְנֵי חָתָן וְכַלָּה, wine is drawn through pipes before the groom and bride,” and “זוֹרְקִין לִפְנֵיהֶם קְלָיוֹת וֶאֱגוֹזִים, roasted grain and nuts are thrown in front of them.” The Ben Yehoyada explains what each of these signifies.
About the nuts he writes: אגוז equals טוב, “good,” so they are thrown as a good sign.
The letters of אגוז also spell זוג א, “one pair,” meaning that the union becomes one, as the Torah says after the creation of Chava, “וְדָבַק בְּאִשְׁתּוֹ וְהָיוּ לְבָשָׂר אֶחָד, he shall cling to his wife, and they shall become one flesh.”
Ben Yehoyada on Berachos 100:3
Ben Yehoyada: the Ben Ish Chai’s commentary on the aggada of the Gemara. Rabbi Yosef Chaim of Baghdad, 19th century.

What the seforim read in 17
- אגוז = טובMidrash Pinchas, Brit Olam on Sefer Chasidim, Devash LeFi
- אהו"ה = טובBa'al Shem Tov, Degel Machaneh Ephraim, Maor VaShemesh
- אגוז = חטKitzur Shulchan Arukh, Brit Olam on Sefer Chasidim, Devash LeFi
- זבו"ב = טובSafa Echat on Pesach Haggadah, Petach Einayim on Ketubot
- טוב = גדו"דBen Yehoyada on Berakhot, Chomat Anakh on II Samuel
- גְּדִי = טוֹבBen Yehoyada on Berakhot
- הַזֶּה = טוֹבBenayahu on Shabbat
- ההוא = טובOd Yosef Chai; Derashot
- טוב = 17Ben Porat Yosef, Beit Yaakov on Torah, Shem MiShmuel
- אהו"ה = 17Ben Porat Yosef, Toldot Yaakov Yosef, Tzofnat Paneach
- הזה = 17Ben Porat Yosef, Agra DeKala, Bnei Yissaschar
- גי"ד = 17Derekh Pikudekha, Pri Etz Chaim, Sha'ar Ma'amarei Rashbi
- גדוד = 17Sha'ar Ruach HaKodesh, Aderet Eliyahu (Rabbi Yosef Chaim)
In Tanach
First appearance of הזה
וַיֹּ֤אמֶר יְהֹוָה֙ לְנֹ֔חַ בֹּֽא־אַתָּ֥ה וְכׇל־בֵּיתְךָ֖ אֶל־הַתֵּבָ֑ה כִּֽי־אֹתְךָ֥ רָאִ֛יתִי צַדִּ֥יק לְפָנַ֖י בַּדּ֥וֹר הַזֶּֽה׃