ibn Mas'ud was a Shahaba.
As for that which is reported from Ibn Mas`ud (Allah be pleased with him), that hanging ta`wizes is shikr, this is understood to mean those that resemble the
one's used in Jahiliyya, or if used thinking that it is the ta`wiz itself that cures or protects, not Allah, or if it contains impermissible invocations or one's whose meaning is not known, as explained by Allama Abu Sa`id al-Khadimi in his al-Bariqa al-Mahmudiyya Sharh al-Tariqa al-Muhammadiyya. [4.171-172]
Sh.abdul Musair hope you have the copy of Musannaf of Imam Abu Bakr ibn Abi Shayba. Where it states the permissibility of hanging Ta’wizes is reported from many of the Companions and early Muslims (Salaf), including: Sa’id ibn al-Musayyab, Ata', Mujahid, Abd Allah ibn Amr, Ibn Sirin, Ubaydullah ibn Abd Allah ibn Umar, and others (Allah be well pleased with them all).
[See: al-Musannaf, 5.439].
One another narration from sahaba(rd):
It is narrated from Amr ibn Shu’ayb, from his father, from his grandfather (Abdullah ibn Amr ibn al-Aas (Allah be pleased with them all), that the Messenger of Allah (Allah bless him & give him peace) used to teach them (the Sahabas) for fearful situations the following words:
“I seek refuge in Allah’s perfect words from His wrath, the evil of his servants, the whispered insinuations of devils, and that they come to me”
Abd Allah ibn Amr used to teach these words to those of his sons who had reached the age of reason, and used to write them and hang them upon those who had not reached the age of reason
(narrated by Abu Dawud & Tirmidhi, and Tirmidhi classed it as an authentic narration). Feel free to correct.
ASk again your ustaz inshallah and share his qawl with us.