Sayyidah Aishah Siddiqah (may Allah be pleased with her) narrates that the Prophet (peace and blessings be upon him) said: "When Allah Almighty bestows a blessing on a servant and that servant knows that this blessing has come from Allah Almighty, Allah Almighty records gratitude for him on account of it, before the servant praises Him for that blessing. And when a servant commits a sin and then feels remorse over it, Allah Almighty records his forgiveness before he seeks forgiveness. And when a servant buys a new garment for a dinar or half a dinar and praises Allah Almighty while putting it on, the garment will not yet have reached his knees before Allah Almighty forgives him."
Al-Tabarani recorded it in al-Mu'jam al-Awsat. Its chain contains Sulayman bin Dawud al-Minqari, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب اللباس / 8494