Yunus bin ‘Abdil A’laa (rahimahullah) narrates the following:
I once said to Imaam Shaafi‘ee (rahimahullah), “Our companion, Imaam Laith bin Sa’d (rahimahullah), has mentioned in regard to people who hold deviated beliefs, ‘Even if I see a person who holds deviated beliefs in deen walking on water, I will not accept him and follow him.’”
Hearing this, Imaam Shaafi‘ee (rahimahullah) remarked, “Imaam Laith (rahimahullah) has said well, but has not expressed the matter to the point I would have expressed it. I would say that let alone such a person walking on water, even if I see him flying in the air, I would not accept him and follow him.”
(Manaaqib-ush-Shaafi‘ee lilBayhaqi pg. 1/453)