Why Does a Supplication Remain Unanswered?

God knows all of our secrets, dreams, and wishes, nothing is hidden from Him. God is with His creation by His knowledge and power. Why then do some du’as (supplications) remain unanswered? A mighty question indeed and even the first Muslims were concerned with the answer.