Sayyidi wa sanadi Mufti Mohammed Taqi Usmani (Allah preserve & protect him) said, “Knowledge on its own does not benefit. My father Mufti Muḥammad Shafīʿ [Allah have mercy on him, d. 1396/1976] would say, ‘if knowledge was the criterion for a person’s virtue, then Satan was the most knowledgeable, however, his knowledge did not benefit him, because he disobeyed Allah.’
Therefore, knowledge alone is not in itself the primary objective. The primary objective is the obedience of Allah and his Messengers (i.e. acting as the knowledge states).
Source: Seven Days in Bukhara and Samarqand