"And Abram called the name of his son" etc. (Genesis 16:15) — just as the angel said to Hagar. And from here you learn that Abraham was a prophet, for he called him Ishmael. "And Abram was eighty-six years old when Hagar bore Ishmael" (Genesis 16:16). Therefore the years of Ishmael were counted, for he was thirteen years old when his father circumcised him, and he did not object.
Abraham Names Ishmael as a Prophet and the Counting of His Years
Midrash Aggadah, Genesis 16:15
ויקרא אברם שם בנו וגו'. כשם שאמר המלאך להגר, ומכאן אתה למד שהיה אברהם נביא שקראו ישמעאל: ואברם בן שמונים שנה ושש שנים בלדת הגר את ישמעאל. לכך נמנו שנותיו של ישמעאל כי בן י"ג שנה הי' כשמלו אביו ולא עיכב: