The virgin will conceive and give birth to a son and will call him Immanuel

Again the LORD spoke to Ahaz, “Ask the LORD your God for a sign, whether in the deepest depths or in the highest heights.” But Ahaz said, “I will not ask; I will not put the LORD to the test.” Then Isaiah said, “Hear now, you house of David! Is it not enough to try the patience of humans? Will you try the patience of my God also? Therefore the Lord himself will give you a sign: The virgin will conceive and give birth to a son, and will call him Immanuel. Isaiah 7:10-14

It seems like king Ahaz of Judah is being righteous in his refusal to ask for a sign, even when the Lord invites Ahaz to do so. But, he is anything but a good king. He did not do what was right in the eyes of the Lord. He made cast idols for worshiping the Baals. He burned his sons in the fire as sacrifices following the practices of the nations the Lord had driven out before Israel. Here, when he learned of the planned attack by the northern kingdom Israel and their alliance with Aram, Ahaz doesn’t turn to God for help, instead he makes and alliance with Tiglath Pileser, king of Assyria. God warns Ahaz in verse 9, “If you do not stand firm in your faith, you will not stand at all.” Ahaz did not heed God’s warning, he goes through with getting help from Assyria rather than waiting on the Lord. In response of Ahaz’s refusal, God gives him a sign of the coming Messiah.