In the Sherlock S04E02, at the mortuary we saw John hit Sherlock in the face and as a result he was admitted in the hospital. Then John gave his own walking stick to Sherlock, as a parting gift.
JOHN: Parting gift.
(He braces it against the back of the chair.)
NURSE CORNISH: Oh, that’s nice. A walking stick.
JOHN: Yeah, it was mine from ... a long time ago.
Though it was pre-equipped with a recording device, as per Sherlock's forecast. John doesn't use his walking stick anymore and Sherlock was asleep on the hospital bed. Throughout the entire episode neither John nor Sherlock is carrying the stick so how come John gave him the stick? Where did it come from in the first place?