First, we should quote the verse correctly. It doesn’t say God “needed” to rest; it simply says that He did rest. Also, it is clear from Scripture that God did not rest because He was tired. Genesis 17:1 calls God the “Almighty God.” Psalm 147:5 says, “Great is our Lord, and mighty in power; His understanding is infinite.” God is all-powerful; He never tires and never needs to rest. As Isaiah 40:28 says, “The everlasting God, the Lord, the Creator of the ends of the earth, neither faints nor is weary.” God is the sum of perfection; He is never diminished in any way, and that includes being diminished in power.
The Hebrew word translated “rested” in Genesis 2:2 includes other ideas than that of being tired. In fact, one of the main definitions of the Hebrew word shabat is “to cease or stop.” In Genesis 2:2 the understanding is that God “stopped” His work; He “ceased” creating on the seventh day. All that He had created was good, and His work was finished.
The context of Genesis 1–2 strongly affirms the idea of God’s “rest” being a cessation of work, not a reinvigoration after work. The narrative tells us which things God created in each of the first six days. His power is displayed through the creation of light, mountains, seas, the sun, moon and stars, plant and animal life, and, finally, humanity. There are many parallels between the first three days of creation and the second three days. However, the seventh day is a sharp contrast. Instead of more creating, there is shabat. Instead of God “doing” more, He “ceased” from doing.