It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whenever Allah, the Mighty and Majestic, grants a servant a blessing in the form of family, wealth or children, and that servant says 'Ma sha' Allah, la quwwata illa billah' (What Allah has willed; there is no power except with Allah), he will not see any calamity in it other than death." And he (peace and blessings be upon him) used to cite this noble verse as evidence: "And why, when you entered your garden, did you not say: 'What Allah has willed (comes to pass); there is no power except with Allah'?"
Likewise Imam al-Bazzar also narrated it from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever sees something that pleases him and says 'Ma sha' Allah, la quwwata illa billah' (What Allah has willed; there is no power except with Allah), it will not harm him."
Imam al-Bazzar said that this is the only route (tariq) of this hadith known to us, while its technical status is that its narrator Abu Bakr al-Hudhali is da'if (weak), and the narrator who narrates from him is likewise weak.
Hadith Takhrij«قلت: أبو بكر ضعيف، والراوي عنه كذلك» «أخرجه المعجم الأوسط للطبراني برقم: 5992، وأخرجه المعجم الصغير للطبراني برقم: 561، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 17151»