Mishkat al-Masabih 242
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ أَفْتَى بِغَيْرِ عِلْمٍ كَانَ إِثْمُهُ عَلَى مَنْ أَفْتَاهُ وَمَنْ أَشَارَ عَلَى أَخِيهِ بِأَمْرٍ يَعْلَمُ أَنَّ الرُّشْدَ فِي غَيْرِهِ فَقَدْ خانه» . رَوَاهُ أَبُو دَاوُد
From Abu Hurayrah, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "Whoever is given a ruling without knowledge, its sin is upon the one who gave him the ruling. And whoever advises his brother on a matter knowing that what is right lies elsewhere has betrayed him." Reported by Abu Dawud.