"The righteous acts of His leadership in Israel" (Judges 5:11). Rabbi Oshaya said: the Holy One, blessed be He, performed acts of righteousness toward Israel by scattering them among the nations. This is like the case of a certain heretic who said to Rabbi Yehudah the Patriarch: "We are better than you, for of you it is written, 'For six months Joab remained there with all Israel until he had cut off every male in Edom' (1 Kings 11:16), while we have dwelt among you for many years and have done nothing to you." He said to him: "If you are willing, let one student deal with you." Rabbi Oshaya then took him on and said to him: "It is because you do not know how to do it. Shall you kill them all? They are not all within your kingdom. Shall you kill only those who are within your kingdom? Then you would be called a maimed kingdom." He said to him: "By the Capitol of Rome, with this matter we rise and with this matter we fall."
Why Scattering Israel Among the Nations Was an Act of Mercy
Yalkut Shimoni on Nach 50:2
צדקות פרוזונו בישראל. א"ר אושעיא צדקות עשה הקב"ה לישראל שפזרן בין האומות כי הא דאמר ליה ההוא אפיקורוס לר' יהודה נשיאה אגן עדיפגן מגייכו דבדידכו כתיב כי ששת חדשים ישב שם יואב עד הברית כל זכר באדום, והא כמה שני איתותביתו בהדן ולא קא עבדינן לכו מידי, א"ל רצונך יטפל לך תלמיד אחד, נופ]ל לו ר' אושעיא א"ל משום דלא ידעיתו היכי תעבדו תקטלינהו כולהו ליתנהו במלכותייכו תקטלו הנך דאיתנהו במלכותייכו קרו לכו מלכותא קטיעא, א"ל גפא של רומי בהא סלקינן ובהא נחתינן: