In the Battle of Angels, Lucifer lost to God due to Michael's betrayal, fell into hell and became the manager of hell.
Gabriel and Michael were good friends, and he had always loved Lucifer, but Lucifer hated all angels, especially those about Michael.
Seeing Gabriel in the hell enchantment with his little thoughts, Lucifer thought of a good way to retaliate against God and Michael.