ENOfficial
It was narrated that ‘Ali (رضي الله عنه) said: The Messenger of Allah (ﷺ) said: `If I were to appoint anyone to a position of authority without consulting the believers, I would have appointed Ibn Umm `Abd (Abdullah bin Mas`ood).`
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا أَبُو سَعِيدٍ، حَدَّثَنَا إِسْرَائِيلُ، حَدَّثَنَا أَبُو إِسْحَاقَ، عَنِ الْحَارِثِ، عَنْ عَلِيٍّ، قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لَوْ كُنْتُ مُؤَمِّرًا أَحَدًا دُونَ مَشُورَةِ الْمُؤْمِنِينَ لَأَمَّرْتُ ابْنَ أُمِّ عَبْدٍ.
sunnah.com