Take a hot shower and slid your foreskin back over the head or
else the blood clots.
The condition of tight foreskin is called phimosis(not sure) or
something, to remedy the problem.
Stretch your foreskin little by little over a long period of time
and at the end you will be able to slid the foreskin up and down
freely.(patience is the key)
Do not stretch excessively, it will cause the skin to tear or
escalate to the condition u experienced