When life is hard, I have a choice. I can believe God has forgotten me, otherwise this hard thing would never have happened. Or I can believe in this hard time that God is with me even when I don't feel His presence.
There is a related choice. When life is hard, and I've prayed to God for help and it hasn't gotten easier: I can believe God doesn't care about this difficulty and wants me to cope on my own, otherwise he would have fixed it. Or I can believe that something precious and new can happen in my heart when I express to him the difficulties I am feeling.
When Psalm 23 says that God prepares a table for us in the presence of our enemies, I think it means that we can be blessed even in the presence of difficulty. The blessing is the peace God gives in the midst of the difficulty.