In Yehoshua (perek 12), there are listed all the kings that Yehoshua and benei yisrael conquered after entering C’naan. It ends by saying:
מֶ֥לֶךְ תִּרְצָ֖ה אֶחָ֑ד כָּל־מְלָכִ֖ים שְׁלֹשִׁ֥ים וְאֶחָֽד׃
The king of Tirzah, one; all the kings, thirty one
And although there was still land to be captured: (13:2)
זֹ֥את הָאָ֖רֶץ הַנִּשְׁאָ֑רֶת כָּל־...
The Talmud (Sanhedrin 91b) proves "resurrection of the dead" from this seemingly grammatical error:
It has been taught: R. Meir said, Whence do we know resurrection from the Torah? From the verse, Then shall Moses and the children of Israel sing this song unto the Lord: not sang but shall sing is written: thus resurrection is taught in the Torah. ...