Sahih al-Bukhari, Book 23, Hadith 14 (Bukhari 1214)

Narrated Anas bin Malik:

The Prophet (ﷺ) passed by a woman who was sitting and weeping beside a grave and said to her, "Fear Allah and be patient."