The Egyptian forward was forced off by a shoulder injury on 31 minutes after a tangle with Real defender Sergio Ramos, and replaced by England international Adam Lallana.
Keylor Navas held a stinging drive from Trent Alexander-Arnold in what represented Liverpool's best chance, while Karim Benzema was denied a goal on 43 minutes by the offside flag after converting a rebound from a Cristiano Ronaldo header.