قال أبو محمد عبد الله بن وهب، رحمه الله تعالى: إن سبب ولايته القضاء أن سليمان بن عبد الملك، لما أفضت إليه الخلافة، وجه رجلا ثقة عنده يقبض خراج إفريقية، وكان عاملها عبد الله بن موسى بن نصير، وكتب إليه يأمره أن لا يوجه بما حصل من ذلك إلا مع عشرة عدول من أهل القيروان يصحبون المال حتى يصل إليه، ويشهدون عنده أن هذا المال أخذ من وجهه، فامتثل عبد الله ما أمره به سليمان. وحصل جميع ذلك ووجه به مع عشرة ثقات منهم عبد الله بن المغيرة، فلما وصلوا بالمال إلى سليمان قال لهم سليمان: «أأخذ هذا المال من وجهه؟ » قالوا: «نعم يا أمير المؤمنين»، وعبد الله بن المغيرة ساكت لم يتكلم بشيء ورعا منه وخوفا من الله عز وجل. وكان عمر بن عبد العزيز حاضرا في ذلك المجلس، فلما سمع كلامهم حفظها عمر بن عبد العزيز له وعلم أنه إنما منعه من الكلام الورع والخوف من الله عز وجل أن لا يتكلم إلا بحق. فلما انصرف القوم من المجلس، سأل عمر بن عبد العزيز عنه فعرفوه به وذكروا له دينه وفضله وورعه فحفظ ذلك له. فلما أفضت الخلافة إليه ولاه حينئذ قضاء إفريقية وتقلده للمسلمين، رضي الله تعالى عنهما. وأقام على القضاء إلى زمان كلثوم بن عياض؛ فلما ولى كلثوم استعفى من القضاء وولى بعده عبد الرحمن ابن عقبة الغفاري .
Abu Muhammad ʿAbd Allah ibn Wahb, God Most High have mercy on him, said: The reason for his appointment to the judgeship was that when the caliphate passed to Sulayman ibn ʿAbd al-Malik, he sent a man he trusted to collect the land tax of Ifriqiya, whose governor was ʿAbd Allah ibn Musa ibn Nusayr; and he wrote to him ordering him not to send what had been collected of it except with ten upright men of the people of al-Qayrawan, who would accompany the money until it reached him and would testify before him that this money had been taken in its proper way. ʿAbd Allah complied with what Sulayman ordered him; he collected all of it and sent it with ten trustworthy men, among them ʿAbd Allah ibn al-Mughira. When they reached Sulayman with the money, Sulayman said to them: “Was this money taken in its proper way?” They said: “Yes, O Commander of the Faithful,” while ʿAbd Allah ibn al-Mughira was silent and said nothing, out of scrupulousness and fear of God, Mighty and Majestic. ʿUmar ibn ʿAbd al-ʿAziz was present at that session; when he heard their words, ʿUmar ibn ʿAbd al-ʿAziz kept it in mind for him, and knew that what had kept him from speaking was only scrupulousness and fear of God, Mighty and Majestic, lest he say anything but the truth. When the people left the session, ʿUmar ibn ʿAbd al-ʿAziz asked about him, and they made him known to him and told him of his religion, excellence and scrupulousness, and he kept that in mind for him. When the caliphate passed to him, he then appointed him to the judgeship of Ifriqiya, and he took it upon himself for the Muslims, God Most High be pleased with them both. He remained in the judgeship until the time of Kulthum ibn ʿIyad; when Kulthum was appointed, he asked to be released from the judgeship, and after him ʿAbd al-Rahman ibn ʿUqba al-Ghifari was appointed.