Several thousand riot police prevented the Muslim Brotherhood from holding a rally outside the Egyptian parliament as planned .