The Messenger of Allah ﷺ used to supplicate during the prayer, "O Allah, I seek refuge in You from the punishment of the grave, and I seek refuge in You from the trial of the False Messiah Dajjal, and I seek refuge in You from the trials of life and death. O Allah, I seek refuge in You from sin and from debt."Someone said to him, "How often you seek refuge from debt!"He replied, "When a man falls into debt, he speaks and lies, and he promises and breaks his promise."
أخبرنا عمرو بن عثمان قال حدثنا أبي عن شعيب عن الزهري قال أخبرني عروة بن الزبير أن
أن رسول الله ﷺ كان يدعو في الصلاة اللهم إني أعوذ بك من عذاب القبر وأعوذ بك من فتنة المسيح الدجال وأعوذ بك من فتنة المحيا والممات اللهم إني أعوذ بك من المأثم والمغرم فقال له قائل ما أكثر ما تستعيذ من المغرم فقال إن الرجل إذا غرم حدث فكذب ووعد فأخلف
Bukhari narrated it in the Book of Adhan, chapter "Supplication before the Salam", hadith no. 832, and Muslim in the Book of Mosques, chapter "On the Prayer", hadith no. 589, from the hadith of Shuayb bin Abu Hamza, with this wording. It is also found in Kubra, chapter "What is sought refuge from", hadith no. 1232.