بِالْقَلَمِ

بِالْقَلَمِ is a phrase (شِبْهُ الجُمْلَةِ) consisting of a particle of pulling down (a preposition) and a genitive noun

PhraseParticle / NounNoun Particle
شِبْهُ الجُمْلَةِجَارٌ وَمَجْرُوْرٌاسْمٌ مَجْرُوْرٌحَرْفُ جَرٍّ
PhraseCompoundGenitive NounParticle of pulling down/Preposition
  
the penبِالْقَلَمِ=القَلَمِ+بِ
the penthe penby
Surah/Below is the only verse in the holy Quran containing the compoundبِالْقَلَمِ
Verse
96-4Who has taught by the penالَّذِي عَلَّمَ بِالْقَلَمِ