Another aspect of Hazrat Mahdi’s (as) knowledge bestowed by Allah is that he will know abjad calculation and its secrets. Taskopruluzade Ahmet Efendi has recorded in his Mawduat-ul'Ulum (Vol.11/ p. 246) that Hazrat Mahdi (as) will know the science of onomancy:
Some of them said this book that has reached maturity is attributed to the appearance of Hazrat Mahdi (as) who is expected to appear in the End Times. He is very competent of the science of jifr and its secrets. This knowledge is the kind of wisdom that reached from the books endowed to the prophets of the past. (Ibrahim Suleymanoglu, Mehdilik ve Imamiye [Mahdism and Imamate], p. 252)