South Africa seamer Lungi Ngidi on Thursday was ruled out from the upcoming Tests against Sri Lanka due to a groin injury, according to ICC.