here is a topic with some information on the omniscience of the Buddha.
Sariputta’s wisdom is a mere tiny fraction of the Buddha yet he was, as ekocare noted, the bhikkhu with the most wisdom