סימן קיא סעיף ח
יֵשׁ נוֹהֲגִין שֶׁקֹּדֶם הַבְּדִיקָה מַנִּיחִין פְּתִיתֵי לֶחֶם בִּמְקוֹמוֹת שֶׁיִּמְצְאֵם הַבּוֹדֵק, כִּי חוֹשְׁשִׁין שֶׁמָּא לֹא יִמְצָא כְּלוּם וּתְהֵא בְּרָכָה לְבַטָּלָה. וּפְשִׁיטָא כִּי מִי שֶׁאֵינוֹ בּוֹדֵק כָּרָאוּי, אֶלָּא שֶׁהוּא מְקַבֵּץ אֵלּוּ הַפְּתִיתִים, לֹא קִיֵּם מִצְוַת בְּדִיקָה, וּבֵרַךְ בְּרָכָה לְבַטָּלָה (תל"ב).
Some people have the custom, before beginning the search, to deposit small pieces of bread in places where the searcher will find them. They are fearful, if he finds no chametz, the berachah will have been said in vain.9It is, however, not a “blessing in vain” because the mitzvah is specifically to search for chametz and even if no chametz is found, the mitzvah is fulfilled. Nevertheless, it is not proper to negate a custom of the Jewish people. According to the Arizal, it is customary to place ten pieces of bread around the house. Special care must be taken that none of these pieces of chametz go lost. It is best to use the sort of bread that will not create crumbs. (Ibid. 432:12, 13) Needless to say, however, anyone who does not search properly, but only gathers up these pieces of bread, has not fulfilled the mitzvah of searching, and his berachah was said in vain.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)