I have heard that on one occasion the Blessed One was staying near Savatthi, in Jeta's Grove, Anathapindika's monastery. Now at that time Ven. Sariputta was sitting not far from the Blessed One — his legs crossed, his body held erect — modest, content, solitary, unentangled, his persistence aroused, devoted to the heightened mind. The Blessed One saw Ven. Sariputta sitting not far away — his legs crossed, his body held erect — modest, content, solitary, unentangled, his persistence aroused, devoted to the heightened mind.
Then, on realizing the significance of that, the Blessed One on that occasion exclaimed:
Exalted in mind & heedful, the sage trained in sagacity's ways: He has no sorrows, one who is Such, calmed & ever mindful.
See also: Ud 4.10.