Mentioning the grandfather's name before the father in the ID card
The mistake in the identity card record citing the father's name in place of that of grandfather and vice versa is pardonable. Allah (Exalted be He) stated:
Call them (adopted sons) by (the names of) their fathers: that is more just with Allâh. But if you know not their father’s (names, call them) your brothers in faith and Mawâlîkum (your freed slaves). And there is no sin on you concerning that in which you made a mistake, except in regard to what your hearts deliberately intend. And Allâh is Ever Oft-Forgiving, Most Merciful.
However, after knowing the truth you must correct the name in the identity card record for the above-mentioned statement and to arrange the distribution of inheritance. (Part No. 11; Page No. 475) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.