They deviated from the laws of their religion and distorted...
They deviated from the laws of their religion and distorted their Book and followed their misguided priests and displeased their God. They thought that they were on the right path while the others are misguided and they bear animosity towards the Jews. Their scholars also knew that a prophet was about to appear, whose signs were indicated in their books. As for the Zoroastrians, they also distorted the religion of Abraham (Peace be upon him) and they worshipped the Fire.
The Arabs have distorted the religion of Ishmael and worshipped the idols. Disbelief and polytheism have become widespread with all its different types and forms. Everyone practices his ignorance, deviation, and disbelief with all sincerity, fanaticism, and involvement. The true believers are a very small minority and Muhammad is one them. You can almost count them on the fingers of one hand as they are scattered here and there.
They were a minority who were wandering and didn't know where to go as they searched for the truth in the midst of darkness and sought the help of their Lord. They requested Him to send a messenger to guide them and show them the truth from falsehood, and lead them out of darkness to the light of guidance. They too were waiting and anticipating the appearance of this prophet sent from God so that they can believe in Him and march under his banner and leadership.
Allah (SWT) sees, hears, watches, and observes everything. He (SWT) sees the nonbelievers, polytheists, and those who are displeased with from the Jews and the misguided from the Christians, and the idol worshippers who associate another God with Allah (SWT). He (SWT) hears the prayers of the oppressed people, the weak, the deprived, and the believers.
With His compassion, He (SWT) watches and observes all those people who have been deceived by the life of this world and tempted by the ample time which Allah (SWT) gave them, till they thought that He (SWT) is oblivious of them, or that He (SWT) is absent from them or does not see them. He (SWT) also sees those who believe in Him and are never desperate from His mercy and compassion.
Those who never give up hope that one day He (SWT) will answer their prayers as they have very deep faith and trust in Him. And Muhammad was surely one of them! This condition reminds us of the same situation which was present before when Allah (SWT) spoke with Prophet Moses (May Allah be pleased with him). The sons of Israel were enslaved in Egypt for many long centuries.