I'm fairly new to NAMD. I have generated a topology file for my ligand through CGENFF but I do not know how to combine topology files of ligand and the protein.
you need not to combine the topology files when reading in NAMD. In fact, NAMD needs only parameter files not topology files along with pdb and psf files of protein-ligand complexes.
what program are you using to generate pdb and psf files using the topology files?
VMD can be used to generate pdb and psf files of your system. VMD can read to multiple topology files.