There currently is one option to travel by night train from Kongsberg (Norway) to Sandnes (Norway), taking approximately 7 hours: Namely the 725 operated by Go-Ahead Nordic.
Go-Ahead Nordic is a Norwegian train operator, part of the international Go-Ahead Group, running passenger rail services in Norway.