His gain was outweighed by his loss/ the loss exceeds (wipes out) the profit/ its benefits are outweighed by the disadvantages
The loss was greater than the profit. In the overall balance, the loss was greater than the gain. The opposite of the expression "His loss came out in his gain."
("The four traits in students: quick to hear and quick to forget - his gain was outweighed by his loss. Hard to hear and hard to forget - his loss came out in his gain. Quick to hear and hard to forget - wise. Hard to hear and quick to forget - that is a bad lot" - Avot 5:11-12; and likewise: "The modest draw their hands back from speaking even words of Torah in the details of laws between man and woman, and all the more so before the common people, for one must fear that their gain will be outweighed by their loss" - Pele Yoetz, letter D; and likewise: "Sometimes the geese receive more than they give, and your reward comes out in your loss" - Shalom Aleichem, Geese Came Up; and likewise: "Some were strict not to interrupt between one man and another in the blessing of Mi Sheberakh. After all, it includes entry into the synagogue, but the sages had already noted this, that the reward comes out in loss" - Agnon, A City and Its Fullness, 448)
Translation
Expression (Hebrew)
יָצָא שְׂכָרוֹ בְּהֶפְסֵדוֹ
Definition (Hebrew)
הַהֶפְסֵד הָיָה מְרֻובֶּה מֵהָרֶוַוח. בַּמַּאֲזָן הַכּוֹלֵל הַהֶפְסֵד הָיָה גָּדוֹל מֵהַשָּׂכָר. הִיפּוּכוֹ שֶׁל הַבִּיטּוּי "יָצָא הֶפְסֵדוֹ בִּשְׂכָרוֹ".
("אַרְבַּע מִדּוֹת בְּתַלְמִידִים מַהֵר לִשְׁמֹעַ וּמַהֵר לְאַבֵּד יָצָא שְׂכָרוֹ בְהֶפְסֵדוֹ.קָשֶׁה לִשְׁמֹעַ וְקָשֶׁה לְאַבֵּד- יָצָא הֶפְסֵדוֹ בִּשְׂכָרוֹ. מַהֵר לִשְׁמֹעַ וְקָשֶׁה לְאַבֵּד- חָכָם. קָשֶׁה לִשְׁמֹעַ וּמַהֵר לְאַבֵּד, זֶה חֵלֶק רַע"- אָבוֹת ה יָא-יב, וְכֵן:"וְהַצְּנוּעִים מוֹשְׁכִים אֶת יְדֵיהֶם מִלְּדַבֵּר אֲפִלּוּ דִּבְרֵי תּוֹרָה בִּפְרָטֵי דִּינֵי אִישׁ וְאִשָּׁה,וּמָה גַּם בִּפְנֵי עַם הָאָרֶץ, דְּאִיכָּא לְמִיַּחַשׂ שֶׁיָּצָא שְׂכָרָן בְּהֶפְסֵדָן"- פֶּלֶא יוֹעֵץ/ אוֹת ד', וְכֵן:"פְּעָמִים שֶׁהָאֲוָזִים מְקַבְּלִים יוֹתֵר מִשֶּׁהֵם נוֹתְנִים,וּשְׂכָרְךָ יוֹצֵא בְּהֶפְסֵדְךָ"- שָׁלוֹם עֲלֵיכֶם/ אֲוָזִים, קָמוּ, וְכֵן:"וְיֵשׁ שֶׁהֶחְמִירוּ שֶׁלֹּא לְהַפְסִיק בֵּין גַּבְרָא לְגַבְרָא בְּבִרְכַּת מִי שֶׁבֵּרַךְ. וַהֲרֵי יֵשׁ בָּהּ הַכְנָסָה לְבֵית הַכְּנֶסֶת, אֶלָּא שֶׁכְּבָר עָמְדוּ עַל זֶה חֲכָמִים,שֶׁהַשָּׂכָר יוֹצֵא בְּהֶפְסֵד"- עַגְנוֹן/ עִיר וּמְלוֹאָהּ, 448)