The Prophet ﷺ said, "Zakariyya, peace be upon him, was a carpenter."Abdul-Rahman noted that sometimes he would attribute this to the Prophet, and sometimes he would not.
حدثنا عبد الرحمن عن حماد عن ثابت عن أبي رافع
عن النبي ﷺ قال كان زكريا عليه الصلاة والسلام نجارا قال عبد الرحمن ربما رفعه وربما لم يرفعه
No references are available.
Its isnad is sahih, Muslim narrated it 4/1847 no. 2379 in the Book of Virtues, the virtue of Zakariya, and Ibn Majah 2/777 no. 2320.