Mentioning Rahab and Babylon. Rabbi Yosei bar Simon said: "All nations are destined to bring gifts to the Messiah, as it is written (Song of Songs 4:8): 'Come with me from Lebanon, my bride, come with me from Lebanon. Descend from the top of Amana, from the tops of Senir and Hermon, from the dens of lions, from the mountains of leopards.' " Rabbi Simon said, "Why is a gift called a dorein?" Because it is compared to a woman who looks at herself and sings, as it is written (Job 7:8): 'The eye that saw me shall see me no more; your eyes are upon me, and I am not.'
And when the nations come before the Messiah, he will say to them, 'Is there among you any Israelite who brought them to me?' as it is said (Psalm 96:7), 'Ascribe to the Lord, O families of the peoples, ascribe to the Lord glory and strength.' The peoples brought me the families of Israel. Rabbi Aha said, "And he tells them, 'Bring them to me with honor, not with shame,' as it is said (Psalm 29:2), 'Ascribe to the Lord the glory of his name; worship the Lord in holy splendor.'
Those who honored him in this world and gave glory to his name." Rabbi Berechiah said in the name of Rabbi Judah (Isaiah 18:7), "In that time shall a present be brought to the Lord of hosts by a people tall and smooth, even from the beginning onward, a nation meted out and trodden underfoot, whose land the rivers divide, to the place of the name of the Lord of hosts, the mount Zion." The letters of "jubilee year" spell "with them," because they bring gifts to the Messiah, as it is said (Zechariah 14:16), "And it shall come to pass, that every one that is left of all the nations which came against Jerusalem shall even go up from year to year to worship the King, the Lord of hosts, and to keep the feast of tabernacles."
Rabbi Berechiah said, "The elders among them who cannot walk, what do they do? They bring gifts and carry them in their hands. What is the meaning of honor when they bring gifts? And when they bring them and they go to leave, and he says, 'This one is a priest, this one is a Levite, this one is an Israelite,' it is as if they were sold into slavery and forgotten and made into Gentiles by force, I accept them.
For it is said (Isaiah 56:7), 'Even them will I bring to my holy mountain, and make them joyful in my house of prayer; their burnt-offerings and their sacrifices shall be accepted upon my altar: for my house shall be called a house of prayer for all peoples.' And where did it say (Deuteronomy 29:28), 'The secret things belong to the Lord our God'?