Selling your own unused prescription - illegal? (US)

Similar things were done by AIDS support groups, which also had drugs costing thousands of dollars, and generally patients who were impoverished by the medical system.

From what I’ve heard, lately most of these send the leftover medications to third-world countries, where the need is still great (and the risk of a lawsuit is small).