خلاصه ماشینی:
"در کتاب صحیح بخاری از ابو عبد الله محمد بن اسماعیل،آورده شده است که پیغمبر اکرم(ص)زمینی را وقف کرد و منافع آن را برای ابن السبیل(در راه ماندهها)صدقه قرار داد.
بنابراین در ابتدا قرآنها و سپس کتابها به مساجد وقف میگشت و چون مساجد بامعماری آن زمان فاقد گنجایش لازم بود باوقف بیشتر کتاب،در داخل مساجد،محلهای ویژهای برای نگهداری کتاب اختصاص یافت،بعدها به هنگام بنای مساجد بزرگ کتابخانههای معتبری در جوار مساجد ساخته میشد که این رسم فرهنگی تا عصر ما نیز ادامه دارد و بیانگر این واقعیت است که در اسلام،عبادت و علم از یکدیگر تفکیکناپذیر است.
12 نصیر بن یحیی(متوفی به سال 268 هـ/881م)،فقیه بزرگ بلخ و شاگرد یکی از مریدان ابو حنیفه نیز عقیدهئی مشابه نظر محمد دارد او وقف کتابها 13 را جایز میشمرد و کتابهای خود را برای استفاده فقهای حنفی،وقف کرد.
اولین کتابخانه وقفی در تاریخ اسلام کتابخانهای است که در عصر عضد الدوله(متوفی به سال 372 هـ/982 م)وقف شده بوده است.
کتابخانههای وقفی که بعدها واقف آن را تاسیس و شرایط برای آن معین کرده هدفش این بوده که استفادهکنندگان او را به دعای خیر یاد کنند و برای حفظ و حراست کتاب از حربه قسم و قسم به خون سید الشهداء(ع)استفاده کرد و عباراتی در پشت کتب وقفی نوشتهاند چنانکه در قرآن وقفی 393 هـ.
صاحب بن عباد بعد از خود این کتابخانه را وقف عموم کرد و بعدها به کتابخانه عمومی تبدیل شد و تاریخ وقف آن به سال 385 هـ."