Samuel said to the people, It is Yahweh who appointed Moses and Aaron, and that brought your fathers up out of the land of Egypt.
Samuel's purpose here was to convince the people of their sin in demanding a king.  He pointed out that without an earthly king and while living under the guidance of their true heavenly king (God), all of the great victories of God's people had been achieved.  He called attention to the quadruple pattern so characteristic of the Book of Judges: (1) the apostasy of Israel; (2) their consequent oppression; (3) their crying to God for deliverance; and (4) God's sending a deliverer in the person of various judges.  Samuel followed no chronological sequence in the things mentioned, but he did conclude the citations by a reference to the deliverance which God had achieved in Samuel's own deliverance of the people at Ebenezer.