"And the LORD said to me: Though Moses and Samuel stood before Me" (Jeremiah 15:1). You find that whatever is written of this one is written of that one. This one was a Levite and that one was a Levite. This one built altars and that one built altars. This one ruled over Israel and Judah, and that one ruled over Israel and Judah. This one offered sacrifice, and that one offered sacrifice. This one [was summoned] by a calling, and that one by a calling. This one [answered] with "Hineni" (Here I am), and that one with "Hineni." "And [God] called [to him out of the midst of the bush] and He said, Hineni" (Exodus 3:4). There [in the Mishnah] we learned: The priest had bolted [the door] from within, and the son of Levi was sleeping outside; the [divine] speech leaped over [Eli] to Eli and spoke with Samuel: "And the LORD called Samuel, and he said, Hineni" (I Samuel 3:4). "And he ran [to Eli] and said, Hineni, for you called me" (ibid. there, verse 5). Said Rabbi Yochanan: like this perfect heifer—"And the LORD came and stood and called as at the other times: Samuel, Samuel. And Samuel said, [Speak], for Your servant hears" (I Samuel 3:10).
Moses and Samuel as Twin Prophets Who Answered Hineni
Midrash Shmuel 9:5
ויאמר ה' אלי אם יעמד משה ושמואל לפני (ירמי' י"א א'), את מוצא מה שכתוב בזה כתוב בזה, זה לוי וזה לוי, זה בנה מזבחות, וזה בנה מזבחות, זה מלך על ישראל ויהודה, וזה מלך על ישראל ויהודה, זה הקריב, וזה הקריב, זה בקריאה, וזה בקריאה, זה בהנני וזה בהנני, ויקרא (ה' אל משה) [אליו אלהים מתוך הסנה] ויאמר הנני (שמות ג' ד'), תמן תנינן נעל הכהן מבפנים ובן לוי ישן מבחוץ, קפץ הדבור אל עלי ודבר עם שמואל, ויקרא ה' אל שמואל ויאמר הנני (שמואל א' ג' ד'), וירץ (לעלי) [אל עלי] ויאמר הנני כי קראת לי (שם שם ה'), אמר רבי יוחנן כהדא עגלתא תמימתה, ויבא ה' ויתיצב כפעם בפעם שמואל שמואל ויאמר שמואל [דבר] כי שומע עבדך (שמואל א' ג' י').