Many countries have passed laws to phase out incandescent bulbs, including the US (in 2007) and the EU. [1]
Though the laws typically have many exceptions and take effect over time, so saying “incandescent bulbs are illegal” is a somewhat strong statement.
[1] https://en.wikipedia.org/wiki/Phase-out_of_incandescent_ligh...