depends on intention.
Nothing can happen except by the will of Allah SWT. And it is only by Allah SWT's decree that some live, and some die. It is Allah SWT who decides.
So when you say "thank you for your kindness" just know in the back of your mind, that Allah SWT blessed you with kind people, etc. Remember EVERY creation is dependent on Allah SWT.
So every good and bad that happens, is willed by Allah SWT.
If you understand Qadr, you'd know that all good and bad comes from Allah SWT. Not to hurt you, but to test you.