الْحَمْدُ لِلهِ عَلَى كُلِّ حَالٍ
When the Messenger of Allah (peace and blessings of Allah be upon him) used to receive an unpleasant news, he (peace and blessings of Allah be upon him) would say:
“All Praise is for Allah in all circumstances.”
“All Praise is for Allah in all circumstances.”