בַּחֶ֣רֶב יָמ֔וּתוּ כֹּ֖ל חַטָּאֵ֣י עַמִּ֑י הָאֹמְרִ֗ים לֹֽא־תַגִּ֧ישׁ וְתַקְדִּ֛ים בַּעֲדֵ֖ינוּ הָרָעָֽה׃
דורכן שװערד װעלן שטאַרבן אַלע זינדיקע פֿון מײַן פֿאָלק, װאָס זאָגן: ניט גענענען און זיך פֿעדערן אױף אונדז װעט דאָס בײז.
Abarbanel
and he brings a proof of this from the time of the ingathering that Israel will be wandering in the desert of the nations that it says "I led them from nation to nation, kingdom to kingdom" and despite this all they weren't able, rather the sinners and rebellious among them died ndd the rest of the nation merited redeption. This explains pasuk 9 "behold I am commanding and the house of Israel will be shaken among the nations..." Just like in a sieve, the grain is scattered and moves from side to side without rest, so too you will wander. But despite all this you won't be completely destroyed, which is the meaning of the "pebble will not fall to the ground". The commentaries explain that the pebble is the righteous men and the dust that falls out is the wicked ones. And Rashi writes that the pasuk says that not a pebble will fall from the orce of the movement. But to me it seems that the meaning is that the word "tzarur" (which the commentaries translate as pebble meaning tzadik) is from the meaning of the word to "bind" and gather like the word is used in Deutoronomy 14:25 and Exodus 12:36 and like the word "tzur" from the same root means a siege because the enemy "gathers" around the city. So here it alludes to the ingathering of Israel, because the prophet said "only I will not utterly destroy the house of Israel" meaning that when a small item is in a sieve but it is attached to other items, it will not fall and be lost. The next pasuk (Amos 9:10) but the wicked will die because of the same movement and upheaval. Each man will die from his sin. And this is the meaning of "by the sword, will perish the sins of my nation". The wicked gave up hope from the troubles and said that the bad wasnt coming in an accerlated and "supernatural" way and was rather a happenstance but not as a result of our wayward deeds. This is all speaking about the birth pangs of the Messiah and the ingathering of exiles. Which is in line with the navi Ezekiel 20: 39 that the sinners will be cleansed from you and also similar to the Abarbenel commentary on Hosea.
Kitzur Ba'al HaTurim
"Men of Sodom" - In the third verse of the section, and similarly, "And you shall be holy men to Me" (Exodus 22:30). And also "And men of perpetuity shall separate transgressors in the land." (Amos 9:10) This means that "men of holiness" refers to the flesh of a live animal that has been torn, and "men of perpetuity" refers to those who were cautious to remain holy and not become impure, and also those who buried the body parts of the dead. The "men of Sodom" were wicked and sinful, as their evil was to prevent travelers from entering their city, and "men of perpetuity" separated transgressors in the land, they were the Sodomites who separated and prevented travelers from entering.