It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) detained a man on suspicion, and on another occasion took a guarantee from a suspect as a precaution.
Ibrahim bin Khuthaym is da'if (weak).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضمان / 11414