Acts 1:1, 2 (NKJV)
Most of the time when you buy some new piece of electronic equipment or something that needs to be put together you also receive a set of instructions. While you might have some prior knowledge that can help you with your new purchase, you usually need to refer to the instructions to be able to deal correctly with your new item. You might even take a quick look at the directions you have and think that you don't need them, you are smart enough to figure it out on your own. But, after running into a couple of difficulties most people will check back with the instructions to get things done right.
In Acts 1:2 it says that Jesus gave commandments to the apostles. But, Jesus did not just share some random thoughts that He had; it was by the direction of the Holy Spirit that Jesus told His disciples what they needed to hear. Today God tells us what we need to hear through the Word and by the Holy Spirit. God is smarter than we are and He always knows what we need ahead of time, even before we know we need it. Just like a company that produces a certain product knows that people need proper instructions to do things right, God knows we need divine direction to live the right kind of life.
Sometimes we think we can go through life on our own without really paying attention to what God has to say in His Word, just like the person who thinks they are smart enough to figure things out on their own without reading the instructions. The Bible is filled with divine directions from God that the Holy Spirit will use to help us in life. God can and will work with us to prepare us for what is to come in our life before we even recognize what is coming. But it is up to us to be diligent to read and study God's Word and then follow the divine direction that the Holy Spirit gives us for every area of life.