Surah Al-Ahzaab, Verse 5
Translation — Sahih International
Call them by [the names of] their fathers; it is more just in the sight of Allah. But if you do not know their fathers - then they are [still] your brothers in religion and those entrusted to you. And there is no blame upon you for that in which you have erred but [only for] what your hearts intended. And ever is Allah Forgiving and Merciful.
Source
Kur'an-ı Kerim, Ahzâb Suresi 33:5
https://kuran.diyanet.gov.tr/mushaf/kuran-meal-2/33-suresi-5-ayet