The pedantic answer you'll probably get here is that there's no such thing because that wouldn't be trve FOSS, but that would be missing the point of the question, so:
There's the Business Source License[1] used by MariaDB, which allows for any "non-production" usage and automatically converts to fully open source 4 years after publication.
There's also the Commons Clause[2] which is supposed to be appended to any other open source license to add a restriction against the "right to Sell the Software".
And there's also Creative Commons NonCommercial license[3], but that one's not specifically meant for software.
All of these are interesting licenses, but honestly I haven't fully read them yet and I don't know if they have any issues or ambiguities or loopholes.
[1] https://mariadb.com/bsl11/
[2] https://commonsclause.com/
[3] https://creativecommons.org/licenses/by-nc/4.0/