Recall the story of Satan tempting Jesus in the desert. You can read it in
Luke 4 for a refresher, and you will see that for each of Satan's temptations Jesus had an answer from the Law. The part that I want to focus on is this: when Satan told Jesus to throw himself down off the cliff and have the angels save him, Jesus said "It says: 'Do not put the Lord your God to the test.'" The scripture He quoted is from Deuteronomy 6:16, which reads "Do not test the Lord your God as you did at Massah."
So what exactly happened at Massah? After being delivered from slavery out of Egypt, Israel had rejected the promised land by their lack of faith and were being led through the desert by God from one place to the next as a period of trial and testing. Eventually they stopped at a place where there was no water for them to drink, and they start arguing with Moses and complaining against God, telling him to give them water, to which Moses responds by saying "Why do you put the LORD to the test?" The word "Massah" means "testing," and I find it interesting that, while God was testing the Israelites to see whether they would follow His ways or not in their wilderness wandering, the Israelites, rather than obeying God, in turn tested God, challenging Him to see whether He would really provide for them - as if parting the Red Sea and raining down manna had not been enough!
Moses then asked God what to do, because he could see the people were getting out of control. Despite the fact that God wasn't happy with their attitude, He provided water for His people. As a result of this whole ordeal, Moses gave the place the names "Massah," which means "testing," and "Meribah," which means "quarreling," because Israel tested the God and argued by saying, 'Is the LORD among us or not?'"
Going back to the temptation: Satan was asking Jesus to prove that God was with Him. How often do we question whether or not God is with us? Just as He patiently provided water for an unbelieving people then, even greater is the patience of God toward us, for surely we have all sometimes tested God ourselves in ignorance as we wander through our own wilderness! Thank God for His mercy! But we are called to a higher standard, because Jesus, in whose way we are called to walk, after 40 days of fasting demonstrated through His response that we should not seek to prove to ourselves or anyone else that God is with us, but to have faith in God to provide. The Israelites were ready to stop following God and go look for water themselves because they thought God might abandon them, whereas Jesus knew that God was with Him.
So also, by the holy scriptures we can know that God is with us! Isaiah prophesied of Christ in Isaiah 7:14 that He would be called "Immanuel," meaning "God with us." Jesus lived on earth and was "God with us" in the flesh, but also in the Great Commission, when Jesus appeared to the disciples after His resurrection, Jesus assured the disciples that "surely I am with you always, to the very end of the age." Jesus continues to be "God with us" today as we draw near the "end of the age," if we will repent of our sins, be baptized, and strive to live by God's word.