The reliable approach is to level a Pikachu to level 50 before evolving it. Do that and it will have learned everything on the Pikachu and Raichu move lists by the time it evolves, Thunderbolt included.
Evolving early locks you out of moves Pikachu learns later, which is why so many players regret rushing it. If you have already evolved and missed a move, the move reminder can help in games that have one.
For detailed move tables by generation: https://www.serebii.net/index2.shtml