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)
أَنَّ النَّبِيَّ ﷺ قَضَى بَيْنَ رَجُلَيْنِ فَقَالَ الْمَقْضِيُّ عَلَيْهِ لَمَّا أَدْبَرَ حَسْبِيَ اللهُ وَنِعْمَ الْوَكِيلُ فَقَالَ رَسُولُ اللهِ ﷺ رُدُّوا عَلَيَّ الرَّجُلَ فَقَالَ مَا قُلْتَ؟ قَالَ قُلْتُ حَسْبِيَ اللهُ وَنِعْمَ الْوَكِيلُ فَقَالَ رَسُولُ اللهِ ﷺ إِنَّ اللهَ يَلُومُ عَلَى الْعَجْزِ وَلَكِنْ عَلَيْكَ بِالْكَيْسِ فَإِذَا غَلَبَكَ أَمْرٌفَقُلْ حَسْبِيَ اللهُ وَنِعْمَ الْوَكِيلُ