Yes, he got a detail wrong, but his larger point was correct: RBG was pushed to retire earlier so Obama could appoint her replacement, but it was widely circulated that she intentionally chose to hold on to be replaced by the next president, who was predicted to be a Democrat as well.
That Trump was wrong about her passing after instead of before the election doesn't change the core point.