(י) וַיּ֣וֹסֶף יְהוָ֔ה דַּבֵּ֥ר אֶל־אָחָ֖ז לֵאמֹֽר׃ (יא) שְׁאַל־לְךָ֣ א֔וֹת מֵעִ֖ם יְהוָ֣ה אֱלֹהֶ֑יךָ הַעְמֵ֣ק שְׁאָ֔לָה א֖וֹ הַגְבֵּ֥הַּ לְמָֽעְלָה׃ (יב) וַיֹּ֖אמֶר אָחָ֑ז לֹא־אֶשְׁאַ֥ל וְלֹֽא־אֲנַסֶּ֖ה אֶת־יְהוָֽה׃ (יג) וַיֹּ֕אמֶר שִׁמְעוּ־נָ֖א בֵּ֣ית דָּוִ֑ד הַמְעַ֤ט מִכֶּם֙ הַלְא֣וֹת אֲנָשִׁ֔ים כִּ֥י תַלְא֖וּ גַּ֥ם אֶת־אֱלֹהָֽי׃ (יד) לָ֠כֵן יִתֵּ֨ן אֲדֹנָ֥י ה֛וּא לָכֶ֖ם א֑וֹת הִנֵּ֣ה הָעַלְמָ֗ה הָרָה֙ וְיֹלֶ֣דֶת בֵּ֔ן וְקָרָ֥את שְׁמ֖וֹ עִמָּ֥נוּ אֵֽל׃
(10) The LORD spoke further to Ahaz: (11) “Ask for a sign from the LORD your God, anywhere down to Sheol or up to the sky.” (12) But Ahaz replied, “I will not ask, and I will not test the LORD.” (13) “Listen, House of David,” [Isaiah] retorted, “is it not enough for you to treat men as helpless that you also treat my God as helpless? (14) Assuredly, my Lord will give you a sign of His own accord!
(ב) וַיָּ֤רֶב הָעָם֙ עִם־מֹשֶׁ֔ה וַיֹּ֣אמְר֔וּ תְּנוּ־לָ֥נוּ מַ֖יִם וְנִשְׁתֶּ֑ה וַיֹּ֤אמֶר לָהֶם֙ מֹשֶׁ֔ה מַה־תְּרִיבוּן֙ עִמָּדִ֔י מַה־תְּנַסּ֖וּן אֶת־יְהוָֽה׃ (ג) וַיִּצְמָ֨א שָׁ֤ם הָעָם֙ לַמַּ֔יִם וַיָּ֥לֶן הָעָ֖ם עַל־מֹשֶׁ֑ה וַיֹּ֗אמֶר לָ֤מָּה זֶּה֙ הֶעֱלִיתָ֣נוּ מִמִּצְרַ֔יִם לְהָמִ֥ית אֹתִ֛י וְאֶת־בָּנַ֥י וְאֶת־מִקְנַ֖י בַּצָּמָֽא׃ (ד) וַיִּצְעַ֤ק מֹשֶׁה֙ אֶל־יְהוָ֣ה לֵאמֹ֔ר מָ֥ה אֶעֱשֶׂ֖ה לָעָ֣ם הַזֶּ֑ה ע֥וֹד מְעַ֖ט וּסְקָלֻֽנִי׃ (ה) וַיֹּ֨אמֶר יְהוָ֜ה אֶל־מֹשֶׁ֗ה עֲבֹר֙ לִפְנֵ֣י הָעָ֔ם וְקַ֥ח אִתְּךָ֖ מִזִּקְנֵ֣י יִשְׂרָאֵ֑ל וּמַטְּךָ֗ אֲשֶׁ֨ר הִכִּ֤יתָ בּוֹ֙ אֶת־הַיְאֹ֔ר קַ֥ח בְּיָדְךָ֖ וְהָלָֽכְתָּ׃ (ו) הִנְנִ֣י עֹמֵד֩ לְפָנֶ֨יךָ שָּׁ֥ם ׀ עַֽל־הַצּוּר֮ בְּחֹרֵב֒ וְהִכִּ֣יתָ בַצּ֗וּר וְיָצְא֥וּ מִמֶּ֛נּוּ מַ֖יִם וְשָׁתָ֣ה הָעָ֑ם וַיַּ֤עַשׂ כֵּן֙ מֹשֶׁ֔ה לְעֵינֵ֖י זִקְנֵ֥י יִשְׂרָאֵֽל׃ (ז) וַיִּקְרָא֙ שֵׁ֣ם הַמָּק֔וֹם מַסָּ֖ה וּמְרִיבָ֑ה עַל־רִ֣יב ׀ בְּנֵ֣י יִשְׂרָאֵ֗ל וְעַ֨ל נַסֹּתָ֤ם אֶת־יְהוָה֙ לֵאמֹ֔ר הֲיֵ֧שׁ יְהוָ֛ה בְּקִרְבֵּ֖נוּ אִם־אָֽיִן׃ (פ)
And the people quarreled with Moses. And they said:
"Give us water, and we will drink!"
And Moses said to them, "Why are you all quarreling with me? Why are you testing YHWH?"
And the people thirsted there for water. And the people complained about Moses.
And he said, "Why is this, that you took us from Egypt to kill me and my children and my livestock with thirst?"
And Moses cried out to YHWH, saying, "What shall I do for this people? Just a little more and they will stone me!"
And YHWH said to Moses, "Pass by in front of the people, and take with you from the elders of Israel and your staff with which you hit the Nile. Take it in your hand and go. Behold! I shall stand before you there on the rock at Horeb, and you shall hit the rock, and the water shall go forth from it, and the people shall drink."
And Moses did thusly, in the eyes of the elders of Israel. And he called the name of the place "Massah" and "Meribah" because of the quarrel (Riv) of the people of Israel, and that they tested YHWH, saying, "Is YHWH truly in our midst or not?"
לֹ֣א תְנַסּ֔וּ אֶת־יְהוָ֖ה אֱלֹהֵיכֶ֑ם כַּאֲשֶׁ֥ר נִסִּיתֶ֖ם בַּמַּסָּֽה׃
Do not try the LORD your God, as you did at Massah.
וַיְהִ֗י אַחַר֙ הַדְּבָרִ֣ים הָאֵ֔לֶּה וְהָ֣אֱלֹהִ֔ים נִסָּ֖ה אֶת־אַבְרָהָ֑ם וַיֹּ֣אמֶר אֵלָ֔יו אַבְרָהָ֖ם וַיֹּ֥אמֶר הִנֵּֽנִי׃
Some time afterward, God put Abraham to the test. He said to him, “Abraham,” and he answered, “Here I am.”
The Testament of Matthew 4
Then Jesus was led up by the Spirit into the wilderness to be tempted by the devil. And after fasting forty days and forty nights he was hungry. And the tempter came and said to him, "If you are the Son of God, command these stones to become loaves of bread."
But he answered, "It is written: Man shall not live by bread alone, but by every word that comes from the mouth of God" (Deut 8:3)
Then the devil took him to the holy city and set him on the pinnacle of the temple and said to him, "If you are the Son of God, throw yourself down, for it is written: 'He will command his angels concerning you,' and 'On their hands they will bear you up, lest you strike your foot against a stone.' (Psalm 91)
Jesus said to him, "Again it is written, You shall not put YHWH your god to the test!'"
So wasn't Ahaz acting piously??? Why did Isaiah get upset?
See Shmuel Vargon's comment on page 290, from Prophecy of Rebuke or Consolation?, from Beit Mikra: Journal of the Study of the Bible and Its World 46:4.