Arjun got brahmastra from his teacher Dronacharya. Guru Drona provided this lethal weapon brahmastra only to 3 students based on their merit viz Arjun, Ashvtthama and Yudhisthira.