How you sat may be a clue. Sitting on a bed many times means leaning this way or that way. There are points on the hip and the legs regarding circulation that may be considered. Those too are points regarding nerves as pointed out by epharmacology. Consider those work together regarding the muscles.
Another question to ask, of which considers both of those, is hip alignment. Most known within Chiropratic care regarding skeletal alignment and its effects with circulation, muscular, and nerve function. At times the hip is not in alignment. Its effect may only be detected with its deflection in extreme cases such as stressed.
As shared sitting on a wallet does have an effect with the function of those three. Leaning more to one side than the other contributes to that as well. Another common habit is crossing the legs, which causes the same strain focused with hip alignment.
For instance I know if I sit at the desk researching and writing for a length of time with my legs crossed then when I get up my left leg almost won't work. I actually limp away while at times it seems asleep. Almost scary.
The pain I experience begins at the hip pointer and runs along two of my thigh muscles. One across the front and one the back. The technical terms for those two muscles are:
Front: Vastus Medialis Muscle
Back: Semimembranosus Muscle
A peek at the following link will show those two muscles. And, it may offer understanding your experienced pain. Easily one may see how they interconnect with each other. http://www.innerbody.com/anatomy/muscular/leg-foot...
Your case may be common, however as with any it is unique. Again, with my case as an example I know two things. Crossing my legs at the desk does in fact cause misalignment with my hip. That is why I facilitate a chiropractor. That causes strain while as a focus point effects circulation and nerve function.
I know in my case I have peripheral arterial disease a result of diabetes. I know my hip will missalign easily. I know I experience that pain through nerves. Those muscles need blood to function properly. Both of those causes inhibit blood flow. The body reports that lack experienced at a particular muscle group through the nerves as pain to the brain.
How to correct? Stretching and exercise is the first line of defense. Restore the circulation and rest the muscles by not straining them. The skeletal structure may realign itself naturally.
Of course insert medical disclaimer here.