We read In the Old Testament, that God was asked His name at least three times, during His glorious visitations with man.
The first was when Jacob wrestled with God, in Genesis 32.
The next was when God visited Moses, in the burning bush passage, in Exodus 3.
Another time was when God visited Manoah and his wife, in Judges 13.
Twice, God answered with a question, to Jacob and to Manoah.
God told Moses the name I AM and I AM THAT I AM.

Home

“Then Jacob asked, saying, ‘Tell me Your name, I pray.’
And He said, ‘Why is it that you ask about My name?’ And He blessed him there (Genesis 32:29).

Other translations:

“Why is it that you ask my name?” NAS

“Why do you ask my name?” CSB

“Why are you asking about my name?” ISV

In Hosea, the “man/Man” in Genesis is referred to as “the Angel” (Hosea 12:4).

From Exodus 3:
“Then Moses said to God, ‘Indeed, when I come to the children of Israel and say to them, ‘The God of your fathers has sent me to you,’ and they say to me, ‘What is His name?’ what shall I say to them?’”
And God said to Moses, ‘I AM WHO I AM.’ And He said, ‘Thus you shall say to the children of Israel, ‘I AM has sent me to you.’”

“Why do you ask My name, seeing
it is wonderful?” (Judges 13:18)

Other translations:
“. . . seeing it is secret? (KJV)
“It is too wonderful for you to understand.” (New Living)
“It is a name of wonder” (Good News).
“. . .because you cannot comprehend it” (NET).
“It is incomprehensible.” (New Heart English)
“. . . seeing it is hidden?’” (JPS Tanakh)
“. . . since it is beyond comprehension?” (Berean)
“You don’t need to know my name. And if you did, you couldn’t understand it” (Contemporary Engish).
“It’s ‘Wonderful’” (International Standard).