The book lists وَمَا أَنْسَانِيهُ (Sūrat al-Kahf) as an exception: despite the preceding unvowelled yāʾ, the pronoun hāʾ is read with ḍammah.
This is a named exception to the general pattern, not a replacement of the rule. Retain the reading given for the verse rather than “correcting” it to kasrah by analogy.
Opening interactive controls...
Exception: wa mā ansānīhu
Rules of Hāʾ al-Ḍamīr: Vowels, Ṣilah and Exceptions
The book lists وَمَا أَنْسَانِيهُ (Sūrat al-Kahf) as an exception: despite the preceding unvowelled yāʾ, the pronoun hāʾ is read with ḍammah.
This is a named exception to the general pattern, not a replacement of the rule. Retain the reading given for the verse rather than “correcting” it to kasrah by analogy.