Language:
كتاب النكاح
67  
Wedlock, Marriage (Nikaah)
(22)
Chapter: "No suckling is to be carried on after the baby is two years old."
(21)
بَابُ مَنْ قَالَ لاَ رَضَاعَ بَعْدَ حَوْلَيْنِ
Sahih al-Bukhari 5102

Narrated `Aisha:

that the Prophet (ﷺ) entered upon her while a man was sitting with her. Signs of answer seemed to appear on his face as if he disliked that. She said, "Here is my (foster) brother." He said, "Be sure as to who is your foster brother, for foster suckling relationship is established only when milk is the only food of the child."

حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا شُعْبَةُ، عَنِ الأَشْعَثِ، عَنْ أَبِيهِ، عَنْ مَسْرُوقٍ، عَنْ عَائِشَةَ ـ رضى الله عنها ـ أَنَّ النَّبِيَّ صلى الله عليه وسلم دَخَلَ عَلَيْهَا وَعِنْدَهَا رَجُلٌ، فَكَأَنَّهُ تَغَيَّرَ وَجْهُهُ، كَأَنَّهُ كَرِهَ ذَلِكَ فَقَالَتْ إِنَّهُ أَخِي‏.‏ فَقَالَ ‏ "‏ انْظُرْنَ مَا إِخْوَانُكُنَّ، فَإِنَّمَا الرَّضَاعَةُ مِنَ الْمَجَاعَةِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 5102
In-book reference : Book 67, Hadith 40
USC-MSA web (English) reference : Vol. 7, Book 62, Hadith 39
  (deprecated numbering scheme)