Look, I'm lazy, okay?
https://lemmy.world/post/1002753
history | grep ‘command’
I use this all the time. Even better if you add it as a function.
hgrep
hists