ولم يزل مقيما ملازما «لقصر زياد» معتكفا على صيام النهار وقيام الليل وتلاوة كتاب الله عز وجل حتى توفي.
He remained residing at and keeping to “Qasr Ziyad”, devoted to fasting by day, standing in prayer by night and reciting the Book of God, Mighty and Majestic, until he died.
وكانت وفاته سنة سبع وأربعين ومائتين، ودفن على سيف البحر من ناحية شرقي القصر، رضي الله تعالى عنه. ومن بعض ما قيل فيه من المراثي : قال حاتم الجبنياني المتعبد :
His death was in the year 247, and he was buried on the seashore, on the east side of the fort, God Most High be pleased with him. Among the elegies that were said about him: Hatim al-Jabanyani the devotee said:
لهفي على عبد الرحيم وفضله ... حتى الممات بكل قلب يستعر
Alas for ʿAbd al-Rahim and his merit ... until death, with every heart burning
ما كان أتقاه وأحسن أمره ... في الله يسعى قد تشمر واتزر
How God-fearing he was, and how fine his affair! ... striving for God, he had girded himself and wrapped his waist-cloth
أما النهار فصائم متهجد ... والليل يهتف بالقرآن إلى السحر
As for the day, he was fasting, keeping vigil ... and the night he cried aloud with the Quran until the dawn
شرب الهدى فملا الرشاد فؤاده ... وهوى الصلاح فما على ذنب عثر
He drank guidance, and right conduct filled his heart ... he loved righteousness, and stumbled into no sin
طلب الخلود، فباع دنياه بما ... يبقى فقد ربح السعيد وما خسر
He sought eternity, and sold his world for what ... endures; so the blessed one profited and did not lose
ولى حميدا راضيا عن ربه ... فلقد عفا عنه لأطيب مختبر
He departed praised, well pleased with his Lord ... and He has pardoned him, as the best of those tested [?]
قد كان في قصص الغراب ... عجائب، للمسلمين جميعهم فيها عبر
In the stories of the crow there were ... wonders; for all the Muslims there are lessons in them
بعث الغراب إليه رب محمد ... حتى ليعلمه بصالح ما ادخر
The Lord of Muhammad sent the crow to him ... to let him know of the good he had stored up
جعل الفتات له براحة كفه ... فدنا إليه به فقر ولم يطر
He put the crumbs for it in the palm of his hand ... and it came close to him with them, settled and did not fly
فهوى الغراب لأخذه متبادرا ... من كفه لم يكتس ثوب الحذر
The crow swooped down, hastening to take them ... from his palm, not clothed in the garment of caution
يا معشر العباد قوموا فانصروا ... دين النبي ووقروه كما نصر
O company of worshippers, rise and help ... the religion of the Prophet, and honour it as he helped it
وصلوا الرباط وجاهدوا فعساكم ... أن تظفروا بالصالحات كما ظفر
Keep up the ribat and strive, that perhaps you ... may win the good deeds as he won them