God Asking Something
According to tafseer by Syed Modoodi this question was not asked for information, for Allah knew already that Moses (A.S) held a staff in his hand. This question was posed to reassure to Moses A.S that he’s holding a staff so that he can be mentally prepared to see the miracle which was going to be performed with it.