Jack Kornfield said this quote

If we are engaged in actions that cause pain and conflict to ourselves and others, it is impossible for the mind to become settled, collected, and focused in meditation; it is impossible for the heart to open.