The Padres rallied from a four-run deficit to salvage the final game of a weekend series at Wrigley Field against the Cubs.