The Bible says that the Holy Spirit is our teacher and will bring to our minds the things He wants us to know and also to remember.
Jesus said in John 14:26 – “But the Helper, the Holy Spirit, whom the Father will send in My name, He will teach you all things, and bring to your remembrance all that I said to you.”