The Messenger of Allah ﷺ struck him on his shoulders and then said: You will attain success, Qudaym, if you die without having been a ruler, a secretary, or a chief. (Using translation from Abū Dāʾūd 2933)
"أفلَحْتَ يَا قُدَيم! إِنْ مُتَّ، وَلمْ تَكُنْ أمِيرًا وَلا كَاتِبًا ولَا عَرِيفًا ".