Or is it the other way'round?
Maybe both. I suspect he felt like he needed to prove himself to Allah, or to his muslim neighbors. Or, maybe someone paid him a visit and demanded he prove himself to Allah and his muslim neighbors. Don't know. I wonder.