There is no direct train service from Santiago da Compostela to Lisbon.
Currently, the best rail connection is as follows (info from: www.renfe.es (Spanish Railways)):
Depart Santiago da C: 16.05
Arr Vallodolid: 21.34
Depart Valladolid: 23.22
Arrive Lisbon: 07.30 (next day)
Long-distance bus operator alsa.es offers the following daily service:
Dept: Santiago da Compostela: 12:00(Spanish Time)
Arr: Lisbon Oriente 20:45(Portuguese Time)
(This bus also continues to Lisbon Sete Rios Bus station)