Ilm al-Ghayb (Knowledge of unseen) and shia Imams


as-Salam Alaikum.

Ilm-e-Gaib of Imam Jafar Sadiq:

Imam Jafar Sadiq (as) narrates:

عن الصادق قال و الله لقد أعطينا علم الأولين و الآخرين فقال له رجل من أصحابه جعلت فداك أ عندكم علم الغيب فقال له ويحك إني لأعلم ما في أصلاب الرجال و أرحام النساء ويحكم وسعوا صدوركم و لتبصر أعينكم و لتع قلوبكم فنحن حجة الله تعالى في خلقه و لن يسع ذلك إلا صدر كل مؤمن قوي قوته كقوة جبال تهامة إلا بإذن الله و الله لو أردت أن أحصي لكم كل حصاة عليها لأخبرتكم و ما من يوم و لا ليلة إلا و الحصى يلد إيلادا كما يلد هذا الخلق و الله لتباغضون بعدي حتى يأكل بعضكم بعضا
“We have been given the knowledge of begining and the end.”
A person from the Imams (as) companions said: “May I be your ransom. Do you have Knowledge of the unseen (Ilm e Ghaib)?”
Imam(as) replied:”Woe unto you. I know what is in the lions of men and womb of women. Woe unto you all. Open us your heart and see with your eyes and accept with your hearts. We are the proof of Allah in his creations. And none can accept this except all those believers whos hearts are as strong as the mount of Tahama and by the will of Allah.”
[Source: Al Manaqib – Ibn Sharashoub Vol.4 Pg.250 / Bihar Al Anwar Vol.26 Pg.28]
Ilm-e-Gaib of Imam Musa ibn Jafar:

عن يعقوب السراج قال: دخلت على أبي عبدالله وهو واقف على رأس أبي الحسن موسى وهو في المهد، فجعل يساره طويلا، فجلست حتى فرغ، فقمت إليه فقال لي:

  ادن من مولاك فسلم، فدنوت فسلمت عليه فرد علي السلام بلسان فصيح، ثم قال لي.

اذهب فغير أسم ابنتك التي سميتها امس، فإنه اسم يبغضه الله، وكان ولدت لي ابنة سميتها بالحميراء، فقال أبوعبدالله (عليه السلام): انته إلى أمره ترشد، فغيرت اسمها

From Ya‘qub al-Sarraj who has said the following.

“Once I went to see abu ‘Abd Allah (DivineSupremeCovenantBody) who was standing by the cradle of abu al-Hassan. He began to speak secretly to him for a long time. I sat there until he was free. I then stood for him and he said to me, “Come close to your Mawla (master and Leader with Divine Authority).” I went close and said the greetings of peace. He answered my greetings very clearly and then he said to me, “Go and change the name of your daughter that you named just yesterday. It is a name that makes Allah angry.” A girl was born to us and I had named her al-Humayra.’” Abu ‘Abd Allah (DivineSupremeCovenantBody) said to me, “Follow his command you will have the right guidance.” I then changed her name.”

[Source: Al-Kaafi Vol.1 Pg.310 Hadees.11]

http://www.al-shia.org/html/ara/books/lib-hadis/al-kafi-1/10.htm#09