لو لف على اصبعه خرقة وادخلها في دبره وهو في الصلاة لم تبطل صلاته
المجموع شرح المهذب للنووي
If someone wraps a cloth around his finger and sticks it into his rear while he is praying, his prayer is still valid.
Short Explanation of the Muhadhab [Al-majmu’ Sharh Al-muhadhab] by Al-Nawawi