Language:
كتاب الجهاد والسير
56  
Fighting for the Cause of Allah (Jihaad)
(160)
Chapter: What tricks and means of security may be adopted
(160)
باب مَا يَجُوزُ مِنَ الاِحْتِيَالِ وَالْحَذَرِ مَعَ مَنْ يَخْشَى مَعَرَّتَهُ
Sahih al-Bukhari 3033
Narrated 'Abdullah bin Umar (ra):
Once, Allah's Messenger (ﷺ) accompanied by Ubai bin Ka'b set out to Ibn Saiyyad. He was informed that Ibn Saiyyad was in a garden of date palms. When Allah's Messenger (ﷺ) entered the garden of date-palms, he started hiding himself behind the trunks of the palms while Ibn Saiyyad was covered with a velvet sheet with murmurs emanating from under it. Ibn Saiyyah's mother saw Allah's Messenger (ﷺ) and said, "O Saf! This is Muhammad." So Ibn Saiyyad got up. Allah's Messenger (ﷺ) said, "If she had left him (in his state), the truth would have been clear."
قَالَ اللَّيْثُ حَدَّثَنِي عُقَيْلٌ، عَنِ ابْنِ شِهَابٍ، عَنْ سَالِمِ بْنِ عَبْدِ اللَّهِ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ ـ رضى الله عنهما ـ أَنَّهُ قَالَ انْطَلَقَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَمَعَهُ أُبَىُّ بْنُ كَعْبٍ قِبَلَ ابْنِ صَيَّادٍ، فَحُدِّثَ بِهِ فِي نَخْلٍ، فَلَمَّا دَخَلَ عَلَيْهِ رَسُولُ اللَّهِ صلى الله عليه وسلم النَّخْلَ، طَفِقَ يَتَّقِي بِجُذُوعِ النَّخْلِ، وَابْنُ صَيَّادٍ فِي قَطِيفَةٍ لَهُ فِيهَا رَمْرَمَةٌ، فَرَأَتْ أُمُّ ابْنِ صَيَّادٍ رَسُولَ اللَّهِ صلى الله عليه وسلم فَقَالَتْ يَا صَافِ، هَذَا مُحَمَّدٌ، فَوَثَبَ ابْنُ صَيَّادٍ، فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ لَوْ تَرَكَتْهُ بَيَّنَ ‏"‏‏.‏
Reference : Sahih al-Bukhari 3033
In-book reference : Book 56, Hadith 240
USC-MSA web (English) reference : Vol. 4, Book 52, Hadith 271
  (deprecated numbering scheme)