لَمْ negates with the jussive; لَنْ negates with the subjunctive; لَا الناهية prohibits and governs the jussive.
VerbWith لَمْWith لَنْProhibition
قَالَلَمْ يَقُلْلَنْ يَقُولَلَا تَقُلْ
بَاعَلَمْ يَبِعْلَنْ يَبِيعَلَا تَبِعْ
دَعَالَمْ يَدْعُلَنْ يَدْعُوَلَا تَدْعُ
رَمَىلَمْ يَرْمِلَنْ يَرْمِيَلَا تَرْمِ
Subjunctive/jussive endings in the five verbs involve loss of the inflectional nūn. In some singular weak verbs, the radical itself is deleted. Do not confuse these two mechanisms.