Therefore take no thought, saying, What shall we eat? or, What shall we drink? or, Wherewithal shall we be clothed? (For after all these things do the Gentiles seek
for your heavenly Father knoweth that ye have need of all these things. But seek ye first the kingdom of God, and his righteousness; and all these things shall be added unto you.
(Matthew 6:31-33)
O my people, remember now what Balak king of Moab consulted, and what Balaam the son of Beor answered him from Shittim unto Gilgal; that ye may know the righteousness of the LORD.
(Micah 6:5)
We are to seek the Kingdom of God, and HIS RIGHTEOUSNESS, as our top priority, rather than material things of this life. BUT...
... one has to know what it is they are seeking, what it is they are looking for, what exactly it is they are following after. And the clue is found in Micah ch 6, verse 5.
O my people, remember now what Balak king of Moab consulted, and what Balaam the son of Beor answered him from Shittim unto Gilgal; that ye may know the righteousness of the LORD.
The story of Balak and Balaam, and the events that transpired from Shittim to Gilgal, will demonstrate the "righteousness of the Lord". That is, by understanding those events, we will gain an understanding of the Lord's righteousness.
Study to show thyself approved.