وأما محنته في القرآن، فذكر أبو إسحق الشيرازي، أنه حمل في المحنة بالقرآن الى بغداد، الى ابن أبي دؤاد. ولم يجب الى ما طلب منه. فرد الى مصر. وقال غيره: ذكر أنه ضرب في ذلك، وأدخل الكبريت تحت ثيابه، وأوقد في جوانب ثيابه، فاحترق ثيابه، فتنحوا عنه، فهرب واستتر في دار امرأة. وقيل إنه علق ودخن من تحته. قال أبو عمر الكندي: لما أمر الواثق الناس بالمحنة، في القرآن. ورد كتابه الى أبي بكر الأصم، قاضي مصر. فأخذ الناس بذلك. فلم يبق فقيه ولا مؤذن ولا معلم إلا أخذ بها. فهوى كثير من الناس، ومليت السجون ممن أنكرها، وأمر القاضي أن يكتب المخلوق على أبواب المساجد. فذكر بعضهم، أنه رأى مطرا غلام الأصم، يسوق هارون الأيلي بعمامته. وهي في عنقه وطيلسانه تحت عضده. وهارون ينادي على نفيه بالمخلوق حتى أخرجه من السجن. وطاف به الطرق كلها، كذلك أتى مطر الى محمد بن عبد الحكم، فأخذ برجله، فوثب محمد، فلما هم مطر أن يتناول قلنسوته، بادر محمد فجعلها في كمه. فأطافه مطر ينادي بالمخلوق، فمضى به على حلقة المعتزلة، فقالوا له: الحمد لله الذي هداك يا عبد الله. ففي هذا يقول الجمل المصري من قصيدة يمدح الأصم:
As for his ordeal concerning the Qurʾan, Abu Ishaq al-Shirazi mentioned that he was carried in the ordeal over the Qurʾan to Baghdad, to Ibn Abi Duʾad, and did not answer as was demanded of him, and was sent back to Egypt. Someone else said: It is mentioned that he was beaten over that, and sulphur was put under his clothes and fire was lit at the edges of his clothes, so that his clothes burned; they moved away from him, and he fled and hid in a woman's house. It is also said that he was suspended and smoke was made beneath him. Abu ʿUmar al-Kindi said: When al-Wathiq ordered the people to be tested about the Qurʾan, his letter came to Abu Bakr al-Asamm, the qadi of Egypt, and he held people to it, so that no jurist, muezzin or teacher remained who was not taken by it. Many people gave way [?], and the prisons were filled with those who rejected it. The qadi ordered that "created" be written on the doors of the mosques. One of them mentioned that he saw Matar, the slave of al-Asamm, driving Harun al-Ayli by his turban, which was around his neck, with his taylasan under his upper arm, while Harun was proclaiming against himself [?] "created", until he brought him out of the prison and paraded him through all the streets in that way. Matar likewise came to Muhammad ibn ʿAbd al-Hakam and took him by his leg; Muhammad leapt up, and when Matar was about to seize his cap, Muhammad hastened to put it into his sleeve. Matar paraded him about, proclaiming "created", and passed with him by the circle of the Muʿtazila, who said to him: "Praise be to God who has guided you, O ʿAbd Allah." About this al-Jamal al-Misri says, in an ode praising al-Asamm:
ومحمد الحكمي أنت أطفته % % وأخاه ينعق بالصياح الأجهر
And Muhammad al-Hakami you paraded about ... and his brother, croaking with the loudest crying,
كل ينادي بالقران وخلقه % % فشهرتهم بمقالة لم تشهر
each proclaiming the Qurʾan and its createdness ... so you made them notorious with a doctrine that had not been made known.
أعطتك السنة أتتك ضيرها % % وأتتك ألسنة بما لم تضمر
The Sunna gave you, its harm came to you [?] ... and tongues came to you with what they had not concealed [?].