This question will be met with an enormous variety of responses, as we all tend to hold to slightly/greatly different conceptions of what the 'common good' entails. Conduct a web search, and you will find that even dogmatic institutions such as churches, and other ideology-based institutions such as charities and political groups are often not entirely consistent in their identification and/or prioritisation of values.
Nonetheless, if 'that which is good for humanity' equates to something like 'that which maximises wellbeing for as many people as possible', then we've come to understand some of the ways in which this might be achieved.
Some of these ways are articulated in this article on the World Economic Forum website. It describes three overarching values:
The dignity of the human person
The importance of the common good which transcends individual interests
The need for stewardship of the planet and posterity
These values encompass the realms of educational and employment opportunity, fair reward, the promotion of equality, freedom, (perhaps optimistically) 'agreement on basic, universal ethical values', socially-focused economic reform, environmental stewardship dedicated to sustainability, effective measurement of social outcomes, and continual engagement with emerging generations in the design and implementation of future strategies.
Many of these values (and others) are also expressed in the United Nations' Universal Declaration of Human Rights, which is intended to stand 'as a common standard of achievements for all peoples and all nations'.
To others, including some within religious communities, 'wellbeing' does not necessarily correspond to the metrics listed above, but depends more upon the values a person holds; the conditions of a person's inner, spiritual state; the extent to which their values accord with those of a particular god or gods. 'The good of humanity' in this view is equivalent to closely humanity aligns itself with divine expectation.
There are still others to whom one of the greatest wellbeing corresponds with liberty; with the right to do as one wishes. Others believe humanity is best served when it is afforded the opportunity to obtain pleasure. Some animal charities equate human flourishing with the emancipation of other animal species. Anarchists aspire to the abolition of all government.
The many and varied imaginings of what it means to promote the good of humanity are far too extensive to be described here, but one thing seems clear, in that the promotion of wellbeing or of certain values or 'virtues' often leads to a reduction in the wellbeing of some populations, either temporarily or permanently. It is this fact, in combination with the irreconcilability of so many different (albeit well-intentioned) world-views which often leads to such great political debate - even violence - about how we might best proceed.
Another sad fact is that the intricacies of human behaviour are so complex and so often conflicting and even combative, that many of our efforts to improve our lot seem to fail and cause great suffering.
This goes some way to explaining why your question as it is formulated is to demand too much of this stack. The question is simple in expression but enormous in the information it hungers for. If by 'good for humanity' you mean 'the common good', an excellent place to start would be the Stanford Encyclopedia of Philosophy entry on The Common Good. If you are interested in what the roughly 10,000 distinct religions have to say on the matter, millions of webpages are devoted to informing you.
To end on a positive note though, it is perhaps encouraging to note that whilst rates of inequality seem to be increasing, the World Bank reports that globally, extreme poverty has rapidly declined:
New poverty estimates by the World Bank suggest that the number of extremely poor people—those who live on $1.90 a day or less—has fallen from 1.9 billion in 1990 to about 736 million in 2015.
This suggests that we are at least on a positive track, given the contribution of extreme poverty to so many metrics of deprivation and distress.