Need help finding a hadith on regrets

I’ ve heard of the hadith about regrets but i need the exact source

Something about if a misfortune or calamity befalls a muslim, they shouldn’t think if only I’ve done so and so but should accept it as the will of Allah.

I’ve obviously paraphrased it, but is anyone familiar with this hadith and give me the exact source?

thanks a lot

Sahih Muslim
*Book 33, Number 6441: * Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: A strong believer is better and is more lovable to Allah than a weak believer, and there is good in everyone, (but) cherish that which gives you benefit (in the Hereafter) and seek help from Allah and do not lose heart, and if anything (in the form of trouble) comes to you, don't say : If I had not done that, it would not have happened so and so, but say: Allah did that what He had ordained to do and your "if" opens the (gate) for the Satan.

Re: Need help finding a hadith on regrets

thanks a lot for that :D