The Messenger of Allah ﷺ came in to me at the mosque while I had interlaced my fingers. He said to me, "Kaab, when you are in the mosque, do not interlace your fingers, for you are in prayer as long as you are waiting for the prayer."
حدثنا يزيد أخبرنا شريك بن عبد الله عن محمد بن عجلان عن المقبري
دخل علي رسول الله ﷺ المسجد وقد شبكت بين أصابعي فقال لي يا كعب إذا كنت في المسجد فلا تشبك بين أصابعك فأنت في صلاة ما انتظرت الصلاة
No references are available.
Its isnad is hasan because of Sharik, see 18021.