Arthur Schopenhauer said this quote

People's envy shows how unhappy they feel, their constant attention to the doings of others how bored they are.