It is in the Gemara Nedarim 66B
אֲמַר לַהּ: זִילִי תְּבַרִי יָתְהוֹן עַל רֵישָׁא דְבָבָא. הֲוָה יָתֵיב בָּבָא בֶּן בּוּטָא אַבָּבָא וְקָא דָאֵין דִּינָא. אֲזַלַת וּתְבַרַת יָתְהוֹן עַל רֵישֵׁיהּ. אֲמַר לַהּ: מָה הָדֵין דַּעֲבַדְתְּ? אֲמַרָה לֵיהּ: כָּךְ צִיוַּנִי בַּעְלִי. אֲמַר: אַתְּ עָשִׂית רְצוֹן בַּעְלִיךְ, הַמָּקוֹם יוֹצִיא מִמֵּךְ שְׁנֵי בָּנִים כְּבָבָא בֶּן בּוּטָ
In anger, he said to her: Go and break them on the head of the bava, intending the gate, as bava means a gate in the Aramaic dialect spoken in Babylonia. She did not recognize this word. At that time, the Sage Bava ben Buta was sitting as a judge at the gate. She went and broke them on his head, as his name was Bava. He said to her: What is this you have done? She said to him: This is what my husband commanded me to do. He said: You fulfilled your husband’s desire, may the Omnipresent bring forth from you two sons, corresponding to the two candles, like Bava ben Buta