Basically you attract whatever condition your spirit is in. Be unthankful and you will attract unthankful spirits. Be thankful and you will attract thankful spirits.
P.E.A.C.E.
Proverbs 17:22, “A joyful heart is good medicine, but a crushed spirit dries up the bones.” (ESV)