"And the people stood far off" (Exodus 20:18): this is twelve mil. This tells that the camp of Israel was twelve mil, and so it says "And they camped by the Jordan from Beth-jeshimoth to Abel-shittim" (Numbers 33:49), and that is twelve mil.
The Camp of Israel Stretched Twelve Mil at Sinai
Yalkut Shimoni on Torah 301:4
וַיַּעֲמֹד הָעָם מֵרָחֹק, אֵלּוּ שְׁנֵים עָשָׂר מִיל, מַגִּיד שֶׁהָיָה מַחֲנֵה יִשְׂרָאֵל שְׁנֵים עָשָׂר מִיל וְכֵן הוּא אוֹמֵר (במדבר לג, מט) "וַיַּחֲנוּ עַל הַיַּרְדֵּן מִבֵּית הַיְשִׁמֹת עַד אָבֵל הַשִּׁטִּים", וְהוּא שְׁנֵים עָשָׂר מִיל.