Consider what these verses say from the standpoint of the prophets who were looking into these things. How did they look into these things? How did they seek God? How did they search Him out?
An actual example appears in Daniel 9:1-3:
In the first year of Darius the son of Ahasuerus, of the lineage of the Medes, who was made king over the realm of the Chaldeans—in the first year of his reign I, Daniel, understood by the books the number of the years specified by the word of the LORD [given] through Jeremiah the prophet, . . .
What was Daniel looking into? He was looking into the Bible, specifically the writings of Jeremiah the prophet.
. . . that He would accomplish seventy years in the desolations of Jerusalem. Then I set my face toward the Lord God to make request by prayer and supplications, with fasting, sackcloth, and ashes.
How did he seek God? By prayer, fasting, and study—the same things that we teach Christians to do. Looking into His Word is a major portion of seeking God. It is not the end of it because, as Amos 5:4, 6-7, 14-15 relates, "seek" in the biblical sense does not just mean "gaining an intellectual knowledge of God" but "turning to become like God." The knowledge of God is of absolutely no use unless we become like God, which is why he says, "Seek God and live!" (Amos 5:4, 6). What good is it if we have the knowledge but do not repent, do not turn to act and become like He is? None. If we only gain knowledge, we will not live.
Prayer plays a major role in this process. Daniel was seeking God's mind for the purpose of imitating, obeying, pleasing, being like Him, and doing His will. If we would continue in the prophet's book, we would find in chapter 10 that another occasion came up in which he fasted for three weeks. A person must be very serious and fervent to fast that long! The angel that is sent to him tells him that God heard Daniel's words from the very first day—that God would hear and answer was never a question. He spent three weeks fasting and praying to understand the will of God.
It is in this way that we come to know God in the sense of perceiving things as He does. If we are doing these things, we have every opportunity to pray according to His will because we will be praying His Word right back to Him—maybe not the exact words, but words that have the same sense. We will be on the same wavelength, as it were, with God.