The electronic configuration of nitrogen and phosphorous are as follows: N = (2,5) ; P = (2, 8, 5)
Nitrogen will have more electronegativity because its atom has small size due to which the attraction of its nucleus for the incoming electron is more and more easy to attract the electron.