Narrated Anas ibn Malik:
When the Prophet (ﷺ) was brought some old dates, he began to examine them and remove the worms from them.