Yes it worked for 8 MHZ. Thank you so much.
In the example that they have given uses 16MHZ so I was also using the same. Also when I did CAN communication between the two Nano boards I had used 16MHZ frequency and it was working so I didn't realize that it might not be same case when communicating with Teensy 4.1.
Thank you so much for the help.