Actually Hindi and Urdu(Hindustani Language) are both derived from Khari boli. Vocabulary consists of Sanskrit, Arabic, Persian and Turkic words.
//Bada Hua To Kya Hua, Jaise Ped Khajoor
Panthi Ko Chaya Nahin, Phal Laage Atidoor //
//Maya Mari Na Man Mara, Mar Mar Gaye Shareer
Asha Trishna Na Mari, Keh Gaye Das Kabir//
^^Thats Khariboli
Khariboli, Awadhi, Brij Bhasa, add Persian, Arabic words and Persian script it becomes Urdu. Instead add more Sanskrit words and Devangari script becomes Hindi.
The basic grammar, sentence structure of Hindi/Urdu originates from these languages(Khariboli, Awadhi, Brij Bhasha, Bhojouri). Urdu and say Farsi have no similarity when it comes to sentence structure.
Hindi/Urdu originated in Uttar Pradesh region.