Cesar Hernandez hit an RBI single with two outs in the ninth inning to give the Philadelphia Phillies a 4-3 victory over the Washington Nationals on Sunday.