PWM frequency library

Can anyone tell me the right pins for PWM in ardiuno R3 uno? Cause last night i set the frequency to pin 5 at 1000 Hz but it was giving me 5000 Hz. Does anyone know about this issue? By the way I am not sure it was pin 5 but it was some pin which was giving out 5000 Hz. I checked it on a digital oscilloscope and I am sure i was giving it 1000 Hz.

Further more I will post a reply for Ardiuno Uno R3 right pins tomorrow after I have checked all pins. As we all know that pwm is used for motors but the actual pwm is given to a H-bridge and most H-bridges have a certain frequency at which they operate. If a higher frequency is given the h-bridge becomes unstable and may cause the frequency generator to fry. Well my h-bridge is sensitive as I have made it myself for 24V motors/5A. I will post the pins and their responses tomorrow after I have checked all the pins. Will post it with pictures.