Welcome to the ODK forum, @Ezzat_Hafez1! We're glad you're here. When you get a chance, please introduce yourself on this forum thread. I'd also encourage you to add an image as your avatar because it helps build community!
You could use something like what is shown in this tweet: https://twitter.com/getodk/status/1387874870298615808
(it links to the documentation on form datasets)
But instead of showing the retrieved data to the person filling out the form, using the data retrieved inside of a relevant
formula to either show them the rest of the survey or end the survey.