It was narrated that Abu Hurairah said:
"The Messenger of Allah (ﷺ) said: 'Whoever is given a Fatwa (verdict) that has no basis, then his sin will be upon the one who issued that Fatwa.'" (ID)
English reference (ID): Vol. 1, Book 1, Hadith 53 (ID)
Arabic reference (ID): Book 1, Hadith 55 (ID)