CAIRO — An Egyptian lawyer and TV personality who declared days ago that he was running for president pulled out of the race Saturday, and state media quoted him as saying he had received a sign from God that victory belonged to former army chief Abdel Fattah Sisi.