After Adam and Chava sinned they 'heard' Hashem go through the garden and out of embarrasment, they hid. Hashem then called to them, "Where are you?"
(ח) וַֽיִּשְׁמְע֞וּ אֶת־ק֨וֹל יהוה אֱלֹהִ֛ים מִתְהַלֵּ֥ךְ בַּגָּ֖ן לְר֣וּחַ הַיּ֑וֹם וַיִּתְחַבֵּ֨א הָֽאָדָ֜ם וְאִשְׁתּ֗וֹ מִפְּנֵי֙ יהוה אֱלֹהִ֔ים בְּת֖וֹךְ עֵ֥ץ הַגָּֽן׃ (ט) וַיִּקְרָ֛א יהוה אֱלֹהִ֖ים אֶל־הָֽאָדָ֑ם וַיֹּ֥אמֶר ל֖וֹ אַיֶּֽכָּה׃
(8) They heard the sound of the LORD God moving about in the garden at the breezy time of day; and the man and his wife hid from the LORD God among the trees of the garden. (9) The LORD God called out to the man and said to him, “Where are you?”
(1) איכה WHERE ART THOU — He knew where he was, but He asked this in order to open up a conversation with him that he should not become confused in his reply, if He were to pronounce punishment against him all of a sudden. Similarly in the case of Cain, He said to him, (4:9) “where is Abel thy brother?” Similarly with Balaam, (Numbers 22:9) “what men are these with thee?” — to open up a conversation with them; so, also, in the case of Hezekiah with reference to the messengers of Merodach-baladan (Isaiah 39:3).
(א) ויקרא. טעם איכה. פתחון הדברי' וכן אי הבל אחיך והנה כחש קין והשיב לו השם קול דמי אחיך צועקים
Reason of the word "איכה". It is an opening for conversation and so to with "אי הבל אחיך"...
(א) ויקרא. הקריאה היתה כ"א להכניס עמו בדברים. ויאמר לו איכה. פי' התבונן בעצמך איך נפלת ממעלתך. איה מדרגתך:
Story of Alter Rebbe:
In 1798, Rabbi Schneur Zalman of Liadi was imprisoned on charges, put forth by the opponents of Chassidism, that his teachings undermined the imperial authority of the czar. For fifty-two days he was held in the Peter-Paul Fortress in Petersburg.
Among the Rebbe’s interrogators was a government minister who possessed broad knowledge of the Bible and Jewish studies. On one occasion, he asked the Rebbe to explain the verse (Genesis 3:9), “And G‑d called out to the man and said to him: ‘Where are you?’” Did G‑d not know where Adam was?
Rabbi Schneur Zalman presented the explanation offered by several of the commentaries: the question “Where are you?” was merely a “conversation opener” on the part of G‑d, who did not wish to unnerve Adam by immediately confronting him with his wrongdoing.
“What Rashi says, I know,” said the minister. “I wish to hear how the Rebbe understands the verse.”
“Do you believe that the Torah is eternal?” asked the Rebbe. “Do you believe that its every word applies to every individual, under all conditions, at all times?”
“Yes,” replied the minister.
Rabbi Schneur Zalman was extremely gratified to hear this. The czar’s minister had affirmed a principle which lies at the basis of the teachings of Rabbi Israel Baal Shem Tov, the very teachings and ideology for which he was standing trial!
“‘Where are you?’” explained the Rebbe, “is G‑d’s perpetual call to every man. Where are you in the world? What have you accomplished? You have been allotted a certain number of days, hours, and minutes in which to fulfill your mission in life. You have lived so many years and so many days,”—here Rabbi Schneur Zalman spelled out the exact age of the minister—“Where are you? What have you achieved?”
...אָמַר רַבִּי אַבָּהוּ בְּשֵׁם רַבִּי חֲנִינָא, כְּתִיב (הושע ו, ז): וְהֵמָּה כְּאָדָם עָבְרוּ בְּרִית, הֵמָּה כְּאָדָם הָרִאשׁוֹן, מָה אָדָם הָרִאשׁוֹן הִכְנַסְתִּיו לְתוֹךְ גַּן עֵדֶן וְצִוִּיתִיו וְעָבַר עַל צִוּוּיִי, וְדַנְתִּי אוֹתוֹ בְּשִׁלּוּחִין וּבְגֵרוּשִׁין, וְקוֹנַנְתִּי עָלָיו אֵיכָה. ... אַף בָּנָיו הִכְנַסְתִּים לְאֶרֶץ יִשְׂרָאֵל, וְצִוִּיתִים וְעָבְרוּ עַל הַצִּוּוּי, דַּנְתִּי אוֹתָם בְּשִׁלּוּחִין וּבְגֵרוּשִׁין וְקוֹנַנְתִּי עֲלֵיהֶם אֵיכָה
“Ayeka” with different vowels to form word “Eicha,” which is the first word of the book of Lamentations in the Bible. Eicha is read on the 9th of Av and describes the destruction of Jerusalem. The Midrash is implying that either a person is willing to answer the question of “Ayeka” – “where are you” honestly and openly, or else begins a path of “Eicha,” of calamity and misfortune.
(ב) וַיִּקְרָא יהוה אֱלֹהִים אֶל הָאָדָם וַיֹּאמֶר לוֹ אַיֶּכָּה. הָכָא רְמִיז לֵיהּ דְּעֲתִיד לְחָרְבָא בֵּי מַקְדְּשָׁא וּלְמִבְכֵּי בָּהּ אֵיכָה. הֲדָא הוּא דִכְתִיב, (איכה א׳:א׳) אֵיכָה יָשְׁבָה בָדָד א''י כ''ה.
Obviously, the word has tremendous meaning. So what does איכה mean on a deeper dimension and how it clarifies the nature of all sins.
First there is a concept that we must understand:
Many people say "לשם יחוד קודשא בריך הוא ושכינתיה" before doing different מצוות. This means that the purpose of doing the mitzva is to unite these 2 aspects of Hashem; הקב"ה and the שכינה. When we do a mitzva we bring שפע into the world as it flows from ה' to the שכינה and then into this world. ח"ו when you do an עבירה you hurt yourself on an individual level but also the whole world as you create a separation of Hashem and the שכינה making less שפע able to flow. The שכינה has many names, one particular name it "כה". Look in the source below.
(יט) ...וזהו שאומרים הנביאים במקומות הרבה בכינוי שכינה: כה אמר יהו"ה..... ולפי שהכול תלוי במידה הזאת הנקראת כה, אמר לו יהו"ה יתברך לאברהם: כ"ה יהיה זרעך (שם ה), כלומר, מן המידה הזאת תיכנס למקור כל המקורות ומעיין כל התולדות...
Not a translation!
Many נביאים use the expression "כה אמר ה". The שערי אורה explains that "כה", which is the שכינה which all the שפע of the world goes through, therefore when Hashem tells Avraham to look up in the sky at the stars He says "כה יהיה זרעך" because the future generations will come through the measure of "כה"
Something interesting Lecha Dodi is ל-כה דודי. דודי = Hashem and we ask Him to approach the שכינה which is the feminine energy of Shabbos.
(ד)... בְּהַהוּא זִמְנָא אִסְתַּלַּק קוּדְשָׁא בְּרִיךְ הוּא מִשְּׁכִינְתֵּיהּ, וְאִשְׁתְּאָרַת בַּת יְחִידָה, הֲדָא הוּא דִכְתִיב (איכה א א) אֵיכָה יָשְׁבָה בָדָד, וְרָזָא דְמִלָּה וַיִּקְרָא יהו''ה אלהי''ם אֶל הָאָדָם וַיֹּאמֶר לוֹ אַיֶּכָּה (בראשית ג ט), אַיֵּה כֹּ''ה, אָמַר לֵיהּ, אַף עַל גַּב דְּגָרְמַת כּוּלֵי הַאי, וְעָבְדַת פִּרוּדָא ... בְּגִין דָּא וַיֹּאמֶר לוֹ אַיֶּכָּה, אַיֵּ''ה כֹּ''ה...
Not a translation!
The reason Hashem asked Adam "איכה" was not to ask him where he is but to make him aware of the meaning of his actions, that through his actions, the שכינה departed. Hashem asks Adam rhetorically, "Where is 'כה'; the Shchina?", meaning you cause a separation of שכינה and Hashem.
What we learn from the Zohar is that when we do a Mitzva it is not only for our personal benefit but we must remember that we are effecting the whole world. First Hashem made Adam aware of the global consequences of his actions and then went onwards to give him his personal punishment he will receive(?).