The conditional clause is مَنْ عَزَّى ثَكْلَى, and its response is كُسِيَ بُرْدًا فِي الْجَنَّةِ. The verb كُسِيَ is passive: the sentence communicates that the person will be clothed without naming the immediate agent. فِي الْجَنَّةِ locates the reward in Paradise.
The structure emphasizes both the human act—standing with someone in deep grief—and the promised reward. The grammar is useful, but it must not overshadow the central moral demand to be gentle and supportive when someone is suffering.