Welcome to Just Answer.
Is there any swelling, redness or warmth?
Did you take any medicine?
I would suggest to get it checked by doctor.
Pain, stiffness can be symptoms with arthritis.
Doctor can examine the hands & advise tests to determine its nature.
You can take paracetamol, meanwhile.
Please feel free to ask, if you have any further query.