Use earlier knowledge of attached pronouns while preserving the compound noun phrase. Use ضَرَبَ for ‘hit’ and نَصَرَ for ‘helped,’ so the verb always agrees with the intended meaning.
Idiomatic meaning
Arabic sentence
I helped my friend
نَصَرْتُ صَدِيقِي
Our Lord, we wronged ourselves
رَبَّنَا ظَلَمْنَا أَنْفُسَنَا
Allah helped us
نَصَرَنَا اللَّهُ
You hit him
ضَرَبْتَهُ
You women helped him
نَصَرْتُنَّهُ
You two stole Hamid's pen
سَرَقْتُمَا قَلَمَ حَامِدٍ