וְהוּא־הִכָּה֩ אֶת־אִ֨ישׁ מִצְרִ֜י אשר [אִ֣ישׁ] מַרְאֶ֗ה וּבְיַ֤ד הַמִּצְרִי֙ חֲנִ֔ית וַיֵּ֥רֶד אֵלָ֖יו בַּשָּׁ֑בֶט וַיִּגְזֹ֤ל אֶֽת־הַחֲנִית֙ מִיַּ֣ד הַמִּצְרִ֔י וַיַּהַרְגֵ֖הוּ בַּחֲנִיתֽוֹ׃
и он убил египтянина, хорошего человека; и у египтянина было копье в руке; но он пошел к нему с посохом и вытащил копье из египтянина'и убил его своим копьем.
Haamek Davar
You shall not withhold the wages. If a person permissibly gained possession of someone else’s property, such as by a loan or the like, but he does not intend to return it is called עושק (oppression) and not גזל (stealing). Stealing is only is the case of, “And he grabbed (ויגזול) the spear from the hand of the Egyptian” (Shmuel II 23:21), which is that he forcibly grabbed it in the first place.
Rashbam
לא תגזול, similar to Samuel II 23,21 ויגזול את החנית מידו, “he wrenched the spear out of his hand.”
Ibn Ezra
robbed by force (as in, “he snatched the spear” [II Samuel 23:21])