Ibn Abbas (may Allah be pleased with them both) says about the words "Make a contract with them if you know any good in them" [Surah al-Nur: 33]: "If you know them to have some skill or wealth."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المكاتب / 21606