Sharp pains at night

Sa

So last night I woke up in the middle of the night and I had like sharp pains in my stomach but I was also like half asleep and just tried to ignore them and ended up just falling asleep through them, I was wondering if this has happened to anyone else?