Blasphemy and Being Struck by Lightning

where did the idea that if you blaspheme, you might get struck by God with lightning come from? did it ever happen in the Bible, or do you think it could be a modern adaptation of “fire from heaven”?