"A man to whom God gives riches, wealth, and honor, etc." (Ecclesiastes 6:2). Rabbi Pinchas said: This measure does not apply to all human beings, but only to the one whom the Merciful One favors. "For he shall not much remember the days of his life" (Ecclesiastes 5:19) — this is Eli. "Because God answers him in the joy of his heart" (ibid.) — this is Elkanah, who, when he guided Israel and brought them up to Shiloh, would not go up in the same year by the way he had gone up in another year; rather, in each and every year he would go up by a different way, in order that Israel would hear and that he might bring them up to Shiloh. Therefore Scripture traces his lineage: "Now there was a certain man of Ramathaim" (1 Samuel 1:1).
Why Elkanah Took a Different Road to Shiloh Each Year
Midrash Shmuel 1:5
איש אשר יתן לו האלהים עושר ונכסים וכבוד וגו' (קהלת ו' ב'), א"ר פנחס המדה הזו אינה נוהגת בכל בני אדם אלא במאן דרחמנא רעי ביה. כי לא הרבה יזכור (כל) [את] ימי חייו (שם ה' י"ט), זה עלי. כי האלהים מענה בשמחת לבו (שם שם), זה אלקנה, כשהיה מדריך את ישראל ומעלה אותן לשילה, לא בדרך שהיה עולה בשנה הזאת היה עולה בשנה אחרת, אלא בכל שנה ושנה היה עולה בדרך אחרת, בשביל לשמע את ישראל להעלותן לשילה, לפיכך הכתוב מייחסו, ויהי איש אחד מן הרמתים.