Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:102:2

Until you visit the graveyards.  

until you visit the graves, ˹either˺ in that you have died and then been buried in them, or ˹it means˺ to the extent that you ˹actually˺ count the dead as a something to rival one another by.
القرآن:١٠٢:٢

حَتَّىٰ زُرْتُمُ الْمَقَابِرَ  

{حتى زرتم المقابر} بأن متم فدفنتم فيها، أو عددتم الموتى تكاثرا.