This question already has an answer here:

The bracha for lighting candles Friday night is "who has sanctified us with his commandments and commanded us to light the lamp of Shabbat." What is the source for the commandment? While we are on this topic, where is the source for the commandment to light candles on yontif?

marked as duplicate by Yishai, rosends, Monica Cellio Sep 20 '15 at 3:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.