This is a quote from Aḥkām al-Qurʾān of al-Qāḍī Bakr bin ʿAlā al-Qushayrī al-Mālikī (d. 344H). Though the translation is accurate enough, the context is missing.
The following statement has been ascribed to Ibn Hajar [rh] and is claimed to be in the 13th volume of the Maktabah Salafiyyah print of Fatḥ al-Bārī...