The Brazil international levelled the Premier League game at Selhurst Park after Palace midfielder Joe Ledley had broken the deadlock early in the second half.
Liverpool weren’t content to settle for a point despite James Milner’s sending off after Ledley’s goal and substitute Christian Benteke scored an added-time winner from the penalty spot.
The Reds hoisted themselves up to seventh place in the Premier League table and six points behind fourth-placed Manchester City in the race to secure a place in next season’s Champions League.
Former Liverpool captain Gerrard celebrated the Merseyside outfit’s much-needed victory on Instagram.
Gerrard wrote: “Sublime first touch and a lovely finish 👏 @roberto_firmino .. 3pts 😬👌 good work Redmen”
Liverpool host Manchester United in the first leg of their Europa League last-16 clash at Anfield on Thursday night.
The Reds lost 1-0 to the Red Devils in their Premier League meeting on Merseyside earlier this season.
MORE: Latest Man Utd news
MORE: Latest Arsenal news
MORE: The latest football news