Let us take a closer look at verse 30 of chapter 2. Through the prophet, the Almighty says to Eli the High Priest: “...I had thought: your house and your father's house would walk before Me forever.”
What does this mean?
There is a principle in Judaism: if the Almighty gives someone something, it is forever.
Because losing what you have been given is very painful. If someone is born the son of a king and is then deprived of the right to inherit the throne, it is a terrible tragedy. If a person is blessed with wealth and honor and then loses both, coping with the loss is so difficult that some people, after losing their fortunes, choose to end their lives.
The same applies to those who serve in the Temple—the High Priest and the priests (kohanim).
Now let us ask: who were Eli and his sons, and how did they become priests?
According to tradition, Aharon had four sons. When the Mishkan was erected, the older two, Nadav and Avihu, were anointed for service. However, on the very first day, they died after improperly offering ketoret. His two other sons, Elazar and Itamar, took their places. After Aharon's death, Elazar continued his work. He became High Priest, Moshe's adviser and closest assistant, serving in this role alongside Yehoshua.
We learn this from the Book of Bamidbar, as well as from the Book of Yehoshua itself, whose conclusion recounts Elazar's death. His position passed to his son Pinchas, who, while Moshe was still alive, had taken a stand against idolatry (Bamidbar). Let us recall how he struck down with a sword a couple committing adultery in public: the Jew Zimri and the Midianite woman Cozbi. For this act, Pinchas was singled out for special recognition by the Almighty. The Book of Yehoshua recounts another episode. Two tribes built an altar. The other tribes feared that this might lead to idolatry. A delegation of ten emissaries, led by Pinchas, set out to investigate the situation. From this we conclude that Pinchas was a leader of the Jewish people. Although he was not meant to become a kohen by birth, because he had been born before Aharon became a priest, he nevertheless received the priesthood for his service to the Almighty and the people.
In the Book of Shoftim, it is Pinchas whom we see serving as High Priest. But several painful events occur (we will discuss them later) that he fails to prevent, and so he loses his position.
The high priesthood passes to Eli, a descendant of Itamar.
However, those around Eli (his sons) fall short. This is precisely what the Almighty tells Eli through Elkanah's prophecy: if only you and your sons had been righteous… But that is not the case, and so it is now being taken away from you and returned to the descendants of Pinchas.
(We have a tradition that the High Priest in the time of Mashiach will be a descendant of Pinchas, rather than Itamar.)
Let us open Pirkei Avot, chapter 4, mishnah 1, and read: “Ben Zoma said: ‘Who is wise? One who learns from every person… Who is strong? One who masters his passions… Who is rich? One who is content with his lot… Who is honored? One who honors others…’” The fourth principle is derived from verse 30, which we are studying, where the prophet quotes G-d's words: “...for those who honor Me I will honor, and those who disgrace Me will be put to shame” (Shmuel I, 2:30).
The Almighty will respond in kind to someone who actively honors Him; someone who does not respect the Creator will be repaid with disgrace. It does not say that the Almighty will disgrace them! But disgrace will come, and it will happen on its own. Good is always directly associated with the Creator's Name; evil makes its own way. Of course, nothing happens without G-d's knowledge, but there is a principle: the Almighty does not put His signature on evil.