Ziyad appointed Hakam bin Amr al-Ghifari as governor over Khurasan. Imran began wishing to meet him, and he encountered him at the door. Imran said, "I had been hoping to meet you. Did you hear the Messenger of Allah ﷺ say, 'There is no obedience in disobedience to Allah'?"Hakam replied, "Yes."Then Imran, may Allah be pleased with him, said, "Allahu Akbar."
حدثنا عبد الوهاب بن عبد المجيد الثقفي عن أيوب
أن زيادا استعمل الحكم بن عمرو الغفاري على خراسان قال فجعل عمران يتمناه فلقيه بالباب فقال لقد كان يعجبني أن ألقاك هل سمعت رسول الله ﷺ يقول لا طاعة في معصية الله قال الحكم نعم قال فكبر عمران رضي الله تعالى عنه
Its chain of transmission is sahih, previously mentioned without the story at 19710.