Mercy for His Name's Sake
Commentators agree that God's primary motive for sparing Israel was to protect His own reputation among the nations. Having publicly delivered Israel from Egypt, allowing them to perish in the wilderness would have caused the watching world to question His power and faithfulness. God's mercy, therefore, is directly linked to His commitment to His own glory and name.