Devarim / Deuteronomy 3:11
כִּי רַק־עוֹג מֶלֶךְ הַבָּשָׁן נִשְׁאַר מִיֶּתֶר הָרְפָאִים הִנֵּה עַרְשׂוֹ עֶרֶשׂ בַּרְזֶל הֲלֹה הִוא בְּרַבַּת בְּנֵי עַמּוֹן תֵּשַׁע אַמּוֹת אָרְכָּהּ וְאַרְבַּע אַמּוֹת רָחְבָּהּ בְּאַמַּת־אִישׁ׃
For only Og king of the Bashan was left of the remnant of the Refaim. Behold, his bed was a bed of iron. Is it not in Rabbah of the children of Ammon? Nine cubits was its length and four cubits its breadth, by the cubit of a man.
Pshat פְּשָׁט
Whose cubit
Rashi: Og survived from the Rephaim whom Amraphel and his allies struck, and the measure is Og's own cubit. Ibn Ezra: it is any man's cubit, otherwise the verse teaches nothing, and Og would not look like a man at all. Sforno: "man" means "each": the cubit of each of the giants, so the bed was far more than nine ordinary cubits.
How Rashi, Ibn Ezra, and Sforno explain it
Remez רֶמֶז
Praise missing a half
Kitzur Ba'al HaTurim: "is it not" (הֲלֹה) is written with heh, and הל״ה is forty in number: a hint to David, who reigned forty years and took Rabbah of the children of Ammon. Or to Moshe (Moses), ten cubits tall. Midrash Lekach Tov: the Torah praises Og's strength to show Moshe's strength. But heh instead of alef says that not even half his praise was told: one does not say much of a wicked man's glory.
How Kitzur Ba'al HaTurim and Midrash Lekach Tov explain it
Drash דְּרָשׁ
Survivor of the flood
Pirkei DeRabbi Eliezer: in the flood Og sat on a rung of the ark and swore to Noach (Noah) to be his slave forever. Noach made a hole and passed him food every day, and so Og "remained". Midrash Aggadah: "only" (רַק) diminishes: Og was lower and worse than all the Rephaim of his time. He was called "the fugitive" because he was not counted as their equal.
How Pirkei DeRabbi Eliezer and Midrash Aggadah explain it
Sod סוֹד
Nine and four
Mei HaShiloach: Og was Eliezer, Avraham's (Abraham's) servant, and bore the sign of the covenant Avraham placed on him. So Moshe feared that the Eternal might be with him. Nine and four are the letters tet (ט) and dalet (ד), neighbours of the letters of the name י״ה. God showed Moshe that Og only seemed good, while his inside was not pure: "in Rabbah of the children of Ammon", in the husk of lust. Among the nations there is no substance behind the fair look.
How Mei HaShiloach explain it