thank you for your question...
first of all stomach pain generally has no relation with urination...
the pain you are experiencing most probably comes from the lumbar area....
this can be because of quite a few reasons...
one such very common reason is
urinary tract infection or stones in the urinary tract...
also drinking less amount of fluid may be a cause for it...
you did not mention your age and the duration since when you are releasing little urine...if it is for a few days only and the colour is smoky or cloudy, it can be most probably urinary tract infection....
otherwise other problems like
prostatitis or
BPH or
kidney pathologies might be the cause....
kindly get back to me with the relevant histories....till then you can have tablet
levofloxacin 750 twice daily for 5 days, have plenty of fluid, maintain genital cleanliness, eat fresh fruits and veggies...
hope this was helpful...regards