Once a Muslim died in Madina. The Holy Prophet along with Ali attended the funeral. Before leading the funeral prayer, the Holy Prophet inquired whether the deceased had to pay any debt. He was told that the deceased had to pay a debt of a few dinars. The Holy Prophet desired that someone should undertake responsibility for clearing the debt of the deceased. It was Ali who undertook the responsibility for meeting the debt, and it was only then that the Holy Prophet led the funeral prayers.