Mishkat al-Masabih 272
وَعَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ قَالَ: يَا أَيُّهَا النَّاسُ مَنْ عَلِمَ شَيْئًا فَلْيَقُلْ بِهِ وَمَنْ لَمْ يَعْلَمْ فَلْيَقُلِ اللَّهُ أعلم فَإِن من الْعلم أَن يَقُول لِمَا لَا تَعْلَمُ اللَّهُ أَعْلَمُ. قَالَ اللَّهُ تَعَالَى لِنَبِيِّهِ (قُلْ مَا أَسْأَلُكُمْ عَلَيْهِ مِنْ أَجْرٍ وَمَا أَنا من المتكلفين)
From ʿAbdullah ibn Masʿud, who said: O people, whoever knows something, let him speak of it, and whoever does not know, let him say: "Allah knows best," for it is part of knowledge that one says about what he does not know: "Allah knows best." Allah the Exalted said to His Prophet: 'Say: I do not ask you for any reward for it, and I am not one of those who pretend.'