Allah (ﷻ) says about the story of the two gardens:
وَلَوْلَا إِذْ دَخَلْتَ جَنَّتَكَ قُلْتَ مَا شَاءَ اللَّهُ لَا قُوَّةَ إِلَّا بِاللَّهِ ۚ
It was better for you to say, when you entered your garden: 'That which Allâh wills (will come to pass)! There is no power but with Allâh'
(Surah Al Kahf 39)
Seeing something liked or disliked
When the Prophet (ﷺ) sees something he liked, he would say:
الْحَمْدُ لِلهِ الَّذِي بِنِعْمَتِهِ تَتِمُّ الصَّالِحَاتُ
Al-ḥamdu lillaahil-ladhee bi ni‛matihi tatimmuṣ-ṣaaliḥaat
All Praise is for Allah by whose favor good works are accomplished
When the Prophet (ﷺ) would see something he disliked, he would say:
الْحَمْدُ لِلَّهِ عَلَى كُلِّ حَالٍ
Al-hamdu lillahi 'ala kulli hal
Praise is to Allah in all circumstances
(Sahih Aj Jami’e 4727, Authenticated by Al Albani as Sahih)