ختم المحاضرة بنكتة ظريفة.
His lecture ended with his witty joke.