Who issues it
The US payer acting as withholding agent, such as a US company paying royalties to a foreign licensor or a US LLC paying dividends-like amounts to a foreign corporation.
What the recipient does with it
A foreign recipient uses it to claim credit for tax withheld, for example on Form 1040-NR or Form 1120-F, or in their home country.
If you live in the US
If your US business pays foreign persons US-source income, collect a W-8 before paying and check whether Form 1042-S applies.
If you live in India or outside the US
If you receive a 1042-S from a US payer, keep it: it shows US tax withheld, which may be creditable.