From a Buddhist perspective,

according to the law of cause and effect, everything that we face in our daily lives has to do with us in one way or another, since every experience is in some respect a result of our own past actions. Thus, whenever we are unhappy, instead of pointing the finger at others we should bravely look within for the answers. This is, of course, easier said than done. That's because undertaking beneficial and meaningful actions requires a lot of effort and courage, while acting recklessly and immorally, on the other hand, tends to come effortlessly. Acting correctly and benevolently will always be beneficial for ourselves and others in the short term as well as in the long run. But without making the right effort to undertake virtuous actions, we will not only lose in the present, but we can also expect to face difficulties in the future as a result. So, let's not deceive ourselves into rationalizing harmful actions due to the influence of egoism and bad habits. After all, at the end of the day, it is we alone who will have to face the unpleasant results of our negative actions.