To find gratitude and generosity when you could reasonably find hurt and resentment will surprise you. It will be so surprising because you will see so much of the opposite: people who have much more than others yet who react with anger when one advantage is lost or with resentment when an added gift is denied.
With the help of the Holy Ghost, we can watch over ourselves. We can pray to recognize and reject the first thoughts of sin. We can pray to recognize a warning not to speak words which would hurt or tempt someone else. And we can, when we must, pray for the humility and the faith to repent.
If we try hard to do what that truth requires of us, God will send more light and more truth. It will go on, line after line, as long as we choose to obey the truth. That is why the Savior said that the man who obeyed His commandments built on a rock so solid that no storm of flood could hurt his house.