Abdullah bin Abi Sufyan bin al-Harith bin Abd al-Muttalib said: A man was owed dates by the Prophet (peace and blessings be upon him), and he came to him demanding them. The Prophet (peace and blessings be upon him) took dates from Khawlah bint Hakim (may Allah be pleased with her) and paid off the debt, and said: "I had (only) poor-quality dates." Then he said: "This is how the believing servants of Allah act. Allah, the Lord of Glory, does not show mercy to a nation whose weak cannot obtain his right without hardship."
This is mursal, and that is the correct (version).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20202