For the source text click/tap here: Bava Batra 106
To download, click/tap here: PDF
The Gemora discusses allocation of inheritance and splitting an estate:
The Gemora first cites a braisa, in which Rabbi Yosi says that when brothers split their inherited estate, once one of them received his share by lottery, all the brothers have taken possession of their portion.
Rabbi Elozar says this halachah is learned from the original division of Eretz Yisroel among the Jews. Just as they took ownership by lottery, so any division by lottery confers ownership to the participants.
We explore the legal status of lottery and the midah of Sodom.