There came a man of God to Eli, and said to him, Thus says Yahweh, Did I reveal myself to the house of your father, when they were in Egypt [in bondage] to Pharaoh's house?
The International Critical Commentary has a remarkably excellent summary of what these verses say.  "An unnamed prophet comes to Eli and rehearses the benefits he and his house have received from Yahweh.  The ingratitude with which he has treated his benefactor is pointed out, and the removal of his house from the priesthood is foretold, with the consequent impoverishment of his descendants.[20]