Cody Gakpo, Mohamed Salah, Dominik Szoboszlai and Virgil van Dijk were on target for the Reds, who will face Newcastle at Wembley on 16 March for the first silverware of the English season.
The 36-year-old spent 16 years at Spanish giants Madrid, winning six La Liga titles and five Champions League trophies.
The Reds defender is out of contract at the end of the season, and there have been strong links with him and Real Madrid after Los Blancos had a bid rejected for him in the January transfer window.