Does anybody know what this is!!!!

ri

This is my brother’s finger , he said he didn’t hit anything and he randomly woke up and it hurts really bad , he can’t bend it and , it swollen and it’s throbbing pain and it hurts more when he sleeps, please help me