"And he said: Here I am" (Exodus 3:4). Rabbi Joshua ben Qorhah said: What is the meaning of "Here I am, Here I am"? "Here I am" for priesthood, "Here I am" for kingship. The Holy One, blessed be He, said to him: In the place of the pillar of the world you are standing. Abraham said "Here I am," and you have said "Here I am."
Moses at the Bush Answers Here I Am for Priesthood and Kingship
Midrash Tanchuma Buber, Shemot 16:1
ויאמר הננה (שמות ג ד), א"ר יהושע בן קרחה מהו הנני הנני, הנני לכהונה הנני למלכות, א"ל הקב"ה (שעמד) [במקום] עמודו של עולם אתה עומד, אברהם אמר הנני, ואתה אמרת הנני.