What does John 14:2-3 mean?

2 In my Father’s house are many mansions: if it were not so, I would have told you. I go to prepare a place for you. 3 And if I go and prepare a place for you, I will come again, and receive you unto myself; that where I am, there ye may be also. (John 14:2-3 KJV)

Thomas Scott

Verses 2-3: Our Lord next assured the disciples, that in heaven, that holy habitation in which his Father displayed his peculiar presence and glory, many peaceful, enduring, and magnificent mansions were prepared for the reception of them and of all his disciples. Their expectations indeed of preferment, and a residence with him in an earthly palace, were about to be finally frustrated; and if their hopes of heavenly felicity had been as groundless and delusory, he would assuredly have undeceived them. But he was about to remove from them, on purpose to prepare a place in heaven for them. It had indeed been “prepared for the children of God “from the foundation of the world,” and for them in his counsel and purpose. Yet the death of the Saviour was necessary to atone for their sins, and to procure them the title to their inheritance; his resurrection would be the earnest of theirs; he would enter into heaven as their Forerunner, to open the way, to remove all hindrances, answer all objections to their admission, and make all things ready for their reception. (Heb 9:24-28) He was going from them for these purposes; he would therefore surely come again, and having prepared them for that holy inheritance, he would at death receive their souls, and at the last day raise their bodies; that so they might be for ever with him, their beloved Friend, in that glorious and happy place to which he was going.