"to the rest and to the inheritance": "the inheritance": This is Shiloh; "the rest": This is Jerusalem, as it is written (Psalms 132:14) "This is My resting place forever. Here will I dwell, for I desire her." These are the words of R. Shimon. R. Yehudah says: Reverse it, it being written (Jeremiah 12:8-9) "My inheritance (Jerusalem) has become to Me like a lion in the forest … Like a bird of prey has My inheritance become to Me."
(Devarim 12:10) "And you will cross the Jordan and you will dwell in the land … (11) and the place that the L-rd your G-d will choose, etc." R. Yehudah says: Three mitzvoth were commanded to Israel upon their entrance to the land: to appoint a king over them, to build the Temple, and to cut off the seed of Amalek,