וַיָּבֹ֣א הָעָם֮ אֶל־הַֽמַּחֲנֶה֒ וַיֹּֽאמְרוּ֙ זִקְנֵ֣י יִשְׂרָאֵ֔ל לָ֣מָּה נְגָפָ֧נוּ יְהוָ֛ה הַיּ֖וֹם לִפְנֵ֣י פְלִשְׁתִּ֑ים נִקְחָ֧ה אֵלֵ֣ינוּ מִשִּׁלֹ֗ה אֶת־אֲרוֹן֙ בְּרִ֣ית יְהוָ֔ה וְיָבֹ֣א בְקִרְבֵּ֔נוּ וְיֹשִׁעֵ֖נוּ מִכַּ֥ף אֹיְבֵֽינוּ׃
And when the people were come into the camp, the elders of Israel said: ‘Wherefore hath the LORD smitten us to-day before the Philistines? Let us fetch the ark of the covenant of the LORD out of Shiloh unto us, that He may come among us, and save us out of the hand of our enemies.’
Rashi
since the Ark of the Lord came to them because the Ark of the Lord had come to them. [The word] בָּאָה is a feminine expression, similar to (I Sam. 4:17): “and the Ark of the Covenant of the Lord (sic) was taken (נִלְקְחָה).”