There currently is one option to travel by night train from Szamotuły (Poland) to Puławy (Poland), taking between approximately 7 and 8 hours: Namely the IC 82170 operated by PKP Intercity.
PKP Intercity is Poland's national long-distance railway operator, running domestic and international train services throughout Poland and to neighboring countries.