37 And he up a righteous nation, and destroyeth the nations of the wicked.
38 And he leadeth away the righteous into precious , and the wicked he , and curseth the land unto them for their sakes. (1 Nephi 17)
But he answered and said, I am not but unto the lost sheep of the house of . (Matthew 15:24)
And the time cometh that he shall manifest himself unto all nations, both unto the and also unto the Gentiles; and after he has manifested himself unto the Jews and also unto the Gentiles, then he shall manifest himself unto the Gentiles and also unto the Jews, and the shall be first, and the shall be last. (1 Nephi 13:42)
21 And verily I say unto you, that ye are they of whom I said: sheep I have which are not of this fold; them also I must bring, and they shall hear my voice; and there shall be one fold, and one .
22 And they understood me not, for they supposed it had been the ; for they understood not that the Gentiles should be through their preaching.
23 And they understood me not that I said they shall hear my voice; and they understood me not that the should not at any time hear my voice—that I should not manifest myself unto them save it were by the .
And it came to pass after my father had spoken these words he spake unto my brethren concerning the gospel which should be preached among the Jews, and also concerning the of the Jews in . And after they had the Messiah, who should come, and after he had been slain he should from the dead, and should make himself , by the Holy Ghost, unto the Gentiles.
And after that ye were blessed then fulfilleth the Father the covenant which he made with Abraham, saying: thy seed shall all the kindreds of the earth be blessed—unto the pouring out of the Holy Ghost through me upon the Gentiles, which upon the shall make them mighty above all, unto the of my people, O house of Israel. (3 Nephi 20:27)
What we observe is "the first" (the House of Israel) having the privilege of God dwelling among them, both in the tabernacle/temple and in an earthly tabernacle. But they reject him. Instead, God manifests himself to "the last" (the Gentiles). But he does not show himself to them and they don't build a temple. Instead, God manifests himself to them through the Holy Ghost. After the day of Pentecost, right before Peter received the revelation to also preach the gospel to the Gentiles, the Holy Ghost plays a more dominant role. In the Old Testament, at least, his role is quite obscure.
Why does God not dwell among the Gentiles? Why is he "replaced" by the Holy Ghost? I am not able to answer that, but again I think there might be hidden wisdom and a pattern that is part of a greater plan. In the latter days, the roles are reversed. The Gentiles, who have the Holy Ghost shall be the instrument to bring back the scattered house of Israel to the fold.
And now, the thing which our father meaneth concerning the grafting in of the natural branches through the fulness of the Gentiles, is, that in the latter days, when our seed shall have in unbelief, yea, for the space of many years, and many generations after the shall be manifested in body unto the children of men, then shall the fulness of the of the Messiah come unto the Gentiles, and from the unto the remnant of our seed (1 Nephi 15:13)
This is the fulfillment of the first becoming last and the last becoming first. But there is another important element to this grand narrative:
Wherefore, my beloved brethren, thus saith our God: I will afflict thy seed by the hand of the Gentiles; nevertheless, I will soften the hearts of the Gentiles, that they shall be like unto a father to them; wherefore, the Gentiles shall be blessed and numbered among the house of Israel. (2 Nephi 10:16)
When the Gentiles are numbered among the house of Israel in the latter days, both the power of the Holy Ghost and the privilege of having God in their midst is now offered to the new, united Israel. In 1836, after the gospel had been restored again to the Gentiles, they became like Israel of old with a temple among them where God could dwell. At the temple invocation in Kirtland:
For thou knowest that we have done this work through great tribulation; and out of our poverty we have of our substance to build a to thy name, that the Son of Man might have a place to himself to his people. (D&C 109:5)
We see the same sentiment in the next chapter where Joseph Smith and Oliver Cowdery have a glorious vision in that temple
7 For behold, I have this , and my name shall be here; and I will myself to my people in mercy in this house.
8 Yea, I will unto my servants, and speak unto them with mine own voice, if my people will keep my commandments, and do not this .
For those who are willing to enter into covenants today and become part of the fold, there is no real division between Gentile and the House of Israel any longer. We have temples among us where God can dwell, like Israel of old, and the power and gift of the Holy Ghost, like Gentiles of old. At some point in the future, Jesus will also dwell among us in plain sight, just like he did among the Jews. There will be one fold and one shepherd in the New Jerusalem.