I wanted to know about the origins of istikhara and whether it has any basis in the Quran please?

Everyone document I’ve read simply goes into the different types of istikharas. I’m aware of the different types, I just would like to know its origin and if it has any basis in the Quran?

See this

https://www.al-islam.org/istikhara-seeking-best-allah-swt-muhammad-baqir-haideri