Shaykh Salim Bamihriz explains that firmness in faith, excellence in this world, and salvation in the Hereafter are founded upon knowledge of Allah ﷻ. Understanding His names, attributes, and actions leads to love, fear, and reliance, while knowing His likes and dislikes motivates righteous action and avoidance of sin.
Firmness upon the religion, excellence in this world and salvation in the Hereafter is built upon this. a) because when you know Allah ﷻ, His names, attributes and Actions this necessitates loving Him, fearing Him, placing reliance upon Him etc. b) when you know what Allah ﷻ loves and is pleased with or angered and displeased with, you will rush to fulfil what He loves and avoid what He hates.