Read the grammatical role before looking at the ending:
- جَاءَ إِبْرَاهِيمُ — Ibrahim is the subject, so it is nominative with one dammah.
- رَأَيْتُ إِبْرَاهِيمَ — Ibrahim is the direct object, so it is accusative with one fathah.
- مَرَرْتُ بِإِبْرَاهِيمَ — after بِ it is genitive, but the basic ghayr munsarif form still has one fathah.
None of the three forms takes tanwin.