God answers when we pray. He longs to show us who He is and what He does. Knowing that inspires prayer.
But these verses shout at me, inspiring me to pray for a different reason:
I will certainly not sin against the Lord by ending my prayers for you (1 Samuel 12:23).
It is sin to know what you ought to do and then not to do it (James 4:17).