"The great truths revealed by the world's Redeemer are for those who search for truth as for hid treasures. Daniel was an aged man. His life had been passed amid the fascinations of a heathen court, his mind cumbered with the affairs of a great empire. Yet he turns aside from all these to afflict his soul before God, and seek a knowledge of the purposes of the Most High. And in response to his supplications, light from the heavenly courts was communicated for those who should live in the latter days. With what earnestness, then, should we seek God, that He may open our understanding to comprehend the truths brought to us from heaven. SL 50.1"
"If thou seekest her as silver, and searchest for her as for hid treasures; Then shalt thou understand the fear of the Lord, and find the knowledge of God."
Both passages connect seeking wisdom as one would seek hidden treasure with understanding and knowledge of God. EGW uses the same analogy and directly references the idea of searching for truth as for hid treasures.
"“I Daniel alone saw the vision: for the men that were with me saw not the vision; but a great quaking fell upon them, so that they fled to hide themselves.... And there remained no strength in me: for my comeliness was turned in me into corruption, and I retained no strength” ( verses 7, 8 ). All who are truly sanctified will have a similar experience. The clearer their views of the greatness, glory, and perfection of Christ, the more vividly will they see their own weakness and imperfection. They will have no disposition to claim a sinless character; that which has appeared right and comely in themselves will, in contrast with Christ's purity and glory, appear only as unworthy and corruptible. It is when men are separated from God, when they have very indistinct views of Christ, that they say, “I am sinless; I am sanctified.” SL 50.2"
"Then said I, Woe is me! for I am undone; because I am a man of unclean lips, and I dwell in the midst of a people of unclean lips: for mine eyes have seen the King, the Lord of hosts."
Both passages describe the experience of seeing God's glory and, as a result, recognizing one's own unworthiness and imperfection. EGW draws a parallel between Daniel's experience and Isaiah's, highlighting the common theme of recognizing one's own sinfulness in the presence of divine holiness.