Shaykh Tusi has narrated from Ammar Yasir that he said:
“In one of the battles, when I was in the service of Ameerul
Momineen (a.s.), we reached a land teeming with ants.
I asked: ‘O Ameerul Momineen (a.s.), is there anyone, who knows the number of these ants?’
He (a.s.) replied: ‘Yes, O Ammar, I know someone, who knows
the number of these ants and also how many of them are males and
how many are females.’
I asked: ‘Who is that, master?’
He (a.s.) replied: ‘Ammar, have you not read the verse of:
“And We have recorded everything in a manifest Imam.” (Surah Yasin :12)
…in Surah Yasin?’
‘I have read it,’ I replied.
He (a.s.) said: ‘I am that ‘manifest Imam’ in whose heart is recorded the knowledge of everything.’ (Behaarul Anwaar,vol. 35, p. 427)
Isbaatul Wilayah (Part One) – Ayatullah AliNamazi Shahroodi (r.a.)