Joshua 22:27

27 On the contrary, it is to be a witness between us and you and the generations that follow, that we will worship the LORD at his sanctuary with our burnt offerings, sacrifices and fellowship offerings. Then in the future your descendants will not be able to say to ours, ‘You have no share in the LORD.’

Read Joshua 22:27 Using Other Translations

But that it may be a witness between us, and you, and our generations after us, that we might do the service of the LORD before him with our burnt offerings, and with our sacrifices, and with our peace offerings; that your children may not say to our children in time to come, Ye have no part in the LORD.
but to be a witness between us and you, and between our generations after us, that we do perform the service of the LORD in his presence with our burnt offerings and sacrifices and peace offerings, so your children will not say to our children in time to come, "You have no portion in the LORD."'
but as a memorial. It will remind our descendants and your descendants that we, too, have the right to worship the LORD at his sanctuary with our burnt offerings, sacrifices, and peace offerings. Then your descendants will not be able to say to ours, ‘You have no claim to the LORD .’

What does Joshua 22:27 mean?

John Gill's Exposition of the Bible
Joshua 22:27

But [that] it [may be] a witness between us and you, and our
generations after us
That we are one people, worship one God, and serve at one altar, of which this built was a resemblance, and would put them in mind of it:

that we might do the service of the Lord before him;
in the tabernacle, and at the altar, in the place where he had chosen to put his name and dwell:

with our burnt offerings, and with our sacrifices, and with our peace
offerings;
to be brought at stated times, or as occasion required:

that your children may not say to our children, in time to come, ye
have no part in the Lord;
nor right to his altar, and so forbid them offering their sacrifices on it; or

``have no part in the Word of the Lord,''

as the Targum; the Messiah, whose sacrifice was typified by the sacrifices of the legal dispensation, and all such, who offered theirs in the faith of that, had a part in it, and their sins were expiated by it.
California - Do Not Sell My Personal Information  California - CCPA Notice