#Why did Samuel tell the people of Israel to present themselves before Yahweh?

He told the people of Israel to present themselves so he could remind them of all the righteous deeds of Yahweh in the past. [12:6-7]