Nissan Altima making knocking noise

I have a 2005 Nissan Altima with about 75000 miles on it. Thats been making a knocking/rattling noise for a few days. It starts when I turn the car on and stops and when I’m in reverse and stops when I’m driving and its warmed up. I haven’t tried anything yet. Any ideas. Thanks