Surah Al Isra Verse 36 explains that Allah swt forbids Muslims to follow words or deeds that are unknown to the truth. This prohibition covers all human activities, both human words and deeds.
Surah Al Isra Verse 36 in Arabic, Transliteration, and English Translation
Wa lā taqfu mā laisa laka bihī ‘ilm, innas-sam’a wal-baṣara wal-fu`āda kullu ulā`ika kāna ‘an-hu mas`ụlā
“And you shall not follow something you do not know. Because of hearing, sight and conscience, they will all be held accountable.” (Q.S Al Isra : 36)
And do not follow what you have no knowledge of. Do not say something you do not know, do not confess to seeing what you do not see, nor confess to hearing what you do not hear, or experience what you did not experience. Verily hearing, sight and heart, are the mandate of your Lord, they shall be held accountable, whether the owner uses for good or bad?