Prayers and Meditations — Paragraph 572
Source (Arabic)
وَالحَمْدُ لِنَفْسِكَ فِي كُلِّ الأَحْوالِ وَإِنَّكَ أَنْتَ العَلِيمُ الحَكِيمُ.
Translation
All praise be to Thy Self at all times and under all conditions. Thou art, verily, the God of knowledge and wisdom.