We have sat in narrow prisons...
We have sat in narrow prisons, bearing many worries and concerns; so, do not be too miser to pray for us and to pay alms on our behalf before your fate becomes similar to ours, perhaps Allah will have mercy on us all. Alas!
We used to be like you, enjoying blessings, but we did not spend in the way of Allah, so our wealth turned into a calamity on our heads while others benefited from it; so, listen to us and do not forget to do us a favor with a dirham or a loaf of bread or whatever you wish, for you shall join us; you shall weep and your tears will not do you any good, just as we do although we find doing so to be futile.
فواحسرتاه قد كنّا قادرين مثل ما أنتم قادرون فيا عباد الله : اسمعوا كلامنا ولا تنسونا فانّكم ستعلمون غداً فانّ الفضول التي في ايديكم كانت في أيدينا فكنّا لاننفق في طاعة الله ، ومنعنا عن الحقّ ، فصار وبالاً علينا ومنفعةً لغيرنا . اعطفوا علينا بدرهم أو رغيف أو بكسرة. ثم ينادون ما أسرع ما تبكون على انفسكم ولا ينفعكم كما نحن نبكي ولا ينفعنا فاجتهدوا قبل أن تكونوا مثلنا. Is the barzakh similar to the purgatory?
Catholics believe that the purgatory is a place where the souls of the dead are cleansed before receiving God's grace, and such cleansing includes atonement through pain. This seems to be close to the Islamic concept because the Almighty punishes many of His servants in the grave in order to affect justice so He may not punish them again in hell. This does not apply to everyone, however, because some sinners are punished in this life, in the grave and in hell as well.
This "purging" in which the Catholics believe may be close to the "grave's constriction" detailed above. It is also stated in some traditions that this constriction, or the torment in the grave, is one of the manifestations of the Almighty Who does not wish to torment His servants twice; so, the grave is the last stage where they have to "pay" for some of their sins.