Rav Judah in the name of Samuel deduced from that Joseph gathered in and brought to Egypt all the gold and silver in the world. The Gemara noted that says: "And Joseph gathered up all the money that was found in the land of Egypt, and in the land of Canaan," and thus spoke about the wealth of only Egypt and Canaan. The Gemara found support for the proposition that Joseph collected the wealth of other countries from , which states: "And all the countries came to Egypt to Joseph to buy corn." The Gemara deduced from the words "and they despoiled the Egyptians" in that when the Israelites left Egypt, they carried that wealth away with them. The Gemara then taught that the wealth lay in Israel until the time of King Rehoboam, when King Shishak of Egypt seized it from Rehoboam, as reports: "And it came to pass in the fifth year of king Rehoboam, that Shishak king of Egypt came up against Jerusalem; and he took away the treasures of the house of the Lord, and the treasures of the king's house."