No. Dr. Donald "Ducky" Mallard (David McCallum) was never stabbed in any episode of NCIS (2003–2021).
He faced peril (kidnapping in "Enemies Foreign/Domestic," heart attack in "Check," hostage situations), but no stabbing occurs. The character died off-screen (honoring McCallum's passing) in Season 21 premiere (2024) — natural causes.
You may be confusing this with another character (e.g., Caitlin Todd shot, Ned Dorneget exploded, Clayton Reeves shot) or another show.