In Joshua 4:6, as בני ישראל cross the dry Jordan River, Joshua instructs one member of each tribe to carry a stone from the dry riverbed in order to build a monument.
למען תהיה זאת אות בקרבכם כי ישאלון בניכם מחר לאמר מה האבנים האלה לכם
This clearly evokes the verses in פרשת בא:
והיה כי יאמרו אליכם בניכם מה העבדה הזאת לכם (Exodus 12:26) and
והיה כי ישאלך בנך מחר לאמר מה זאת (Exodus 13:14)
Verse 12:26 is attributed in the Midrash in the Haggadah to the רשע, because he excludes himself by saying “לכם”. The verse in Joshua also seems to exclude the questioner.
Verse 4:6 is directed to the 12 men who actually carry the stones from the dry riverbed. When Joshua repeats the reason for setting up to the entire בני ישראל, he phrases it slightly differently:
Joshua 4:21: ויאמר אל בני ישראל לאמר אשר ישאלון בניכם מחר את אבותם לאמר מה האבנים האלה