It is narrated from Sa'id bin al-Musayyib (may Allah have mercy on him) that the Messenger of Allah (peace and blessings be upon him) said: "When one of you is in the mosque, let him not interlace his fingers, for he is (even then, as it were) in a state of prayer."
All the narrators of this chain are thiqat (trustworthy), and a hadith narrated as marfu' from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) is a shahid (supporting narration) for it, which Imam Ahmad bin Hanbal (may Allah have mercy on him) recorded in his Musnad with these words: "When one of you is in the mosque, let him never do tashbik (interlacing the fingers), for tashbik is from Satan, and as long as one of you remains in the mosque he continues to be in a state of prayer until he leaves it."
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 1004
Hadith Gradingمحدثین:رجاله ثقات
Hadith Takhrij«هذا إسناد رجاله ثقات، له شاهد من حديث أبي سعيد الخدري مرفوعا، رواه أحمد بن حنبل في مسنده ولفظه: "إذا كان أحدكم في المسجد فلا يشبكن؛ فإن التشبيك من الشيطان، وإن أحدكم لا يزال في صلاة ما كان في المسجد حتى يخرج منه "» «أخرجه سنن الترمذي برقم: 386، وأخرجه سنن أبي داود برقم: 562، وأخرجه سنن ابن ماجه برقم: 967، وأخرجه مسند أحمد برقم: 17637، 17646، 17664، 10992، وأخرجه سنن الدارمي برقم: 1404، وأخرجه فتح الباري برقم: 466، وأخرجه المستدرك على الصحيحين برقم: 772، 773، وأخرجه صحيح ابن خزيمة برقم: 441، وأخرجه المعجم الأوسط للطبراني برقم: 8825، وأخرجه صحيح ابن حبان برقم: 2036، وأخرجه معرفة السنن والآثار برقم: 6608، 6607، وأخرجه شرح السنة برقم: 760، وأخرجه السنن الصغير للبيهقي برقم: 852»