אֲשֶׁ֨ר הָיָ֧ה דְבַר־יְהוָ֛ה אֶל־יִרְמְיָ֥הוּ הַנָּבִ֖יא אֶל־פְּלִשְׁתִּ֑ים בְּטֶ֛רֶם יַכֶּ֥ה פַרְעֹ֖ה אֶת־עַזָּֽה׃ (ס)
The word of the LORD that came to Jeremiah the prophet concerning the Philistines, before that Pharaoh smote Gaza.
Read midrashic interpretation of Jeremiah 47:1: and classical rabbinic exegesis.