A heartfelt plea to God for life often stems from a deep, selfless devotion to His commandments. The psalmist asks God to look closely at his actions, showing that his love for God's laws drove him to confront the wicked. This struggle was never for personal gain, but strictly to defend God's honor [רד"ק]. This request directly follows his earlier encounters with those who act treacherously. After witnessing their betrayal, he responds by fighting against their actions, which in turn leads to his current prayer for life and divine kindness [אבן עזרא].
Historically, this selfless dedication is vividly seen in the life of King David. While he was actively being hunted and facing severe personal distress, David ignored his own troubles. Instead, he chose to rebuke Abner for failing to protect King Saul, thereby defending the commandment to honor and revere a king. Because David consistently prioritized the welfare of others and the observance of the commandments over his own safety, he asks God to sustain him. He relies on the principle that God first answers those who care for others before themselves [אלשיך].
Another perspective views this deep love for the commandments as an expression of pure, unyielding desire. The psalmist declares a strong, genuine yearning to fulfill God's will. He asks that even if he did not succeed in keeping every single commandment in practice, God might still grant him life out of pure kindness. This hope is based on God's unique nature of combining a good thought with a physical action. In His eyes, the sincere love and positive intention to do good are credited as if the commandments were fully accomplished [מצודת דוד].