https://en.wikipedia.org/wiki/Ali_Khamenei%27s_fatwa_against...
I don't expect Iran to use any nukes that they develop though. Having nukes puts a country in a special diplomatic class. Using them is almost never beneficial. The status quo risks for nuclear programs is stronger sovereignty, which would drastically shift the regional balance of power and possibly tip the scales on a broad international level.