Sayyiduna Talhah bin Ubaydullah (may Allah be pleased with him) passed through a mosque, prayed one rak'ah in it and then left.