The Holy Prophet ﷺ gave a decision between two men, and the one against whom the decision was given turned away and said: For me Allah sufficeth, and He is the best dispenser of affairs. The Holy Prophet ﷺ said: Allah, Most High, blames for falling short, but apply intelligence, and when the matter gets the better of you, say; For me Allah sufficeth, and He is the best disposer of affairs. (Using translation from Abū Dāʾūd 3627)
أَنَّ النَّبِيَّ ﷺ قَضَى بَيْنَ رَجُلَيْنِ فَقَالَ الْمَقْضِيُّ عَلَيْهِ لَمَّا أَدْبَرَ حَسْبِيَ اللهُ وَنِعْمَ الْوَكِيلُ فَقَالَ النَّبِيُّ ﷺ إِنَّ اللهَ جَلَّ ثَنَاؤُهُ يَلُومُ عَلَى الْعَجْزِ وَلَكِنْ عَلَيْكَ بِالْكَيْسِ فَإِذَا غَلَبَكَ أَمْرٌ فَقُلْ حَسْبِيَ اللهُ وَنِعْمَ الْوَكِيلُ