How do different light spectrums affect the growth stages of cannabis, and which spectrum is best for each phase?

Hi Everyone, Please help me out in this ! How do different light spectrums affect the growth stages of cannabis, and which spectrum is best for each phase?